rust-qt / ritual

Use C++ libraries from Rust
Apache License 2.0
1.22k stars 49 forks source link

help - QListOfQStandardItems - not clear how to append a QStandardItem #97

Closed jlgerber closed 4 years ago

jlgerber commented 4 years ago

The append signature of QListOfQStandardItem takes ref to another QListOfQStandardItem. I dont see how you can append an actual QStandardItem to the list.

Riateche commented 4 years ago

Some methods are missing on this type. I will investigate it. Thanks for the report!

jlgerber commented 4 years ago

Fortunately, there was another way to do what i was trying to do.

Riateche commented 4 years ago

Fixed in qt_gui 0.5.0-alpha.1. Also all similar methods across all Qt crates are fixed. The argument type in the Rust functions can be improved, though.