You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not currently possible to use QAbstractListModel because inheritance is not supported yet. It's possible to work around it with QStandardItemModel in simple cases.
I don't know if it's possible to register QML types from Rust right now. It may require some special support, but I haven't looked into it yet.
This is me being naive, but what prevents inheritance from being supported? Is it because of a trait-y thing in Rust? I figure a Rust-side implementation of those classes can be made.
Nothing prevents supporting inheritance, it just wasn't implemented yet. Inheritance is a bit more complicated to support than straightforward calling of public methods because the generator has to set up an inherited class that allows to supply custom handlers for each virtual method. It should also provide a way to call protected methods because that's sometimes necessary. See rust-qt/ritual#26 for a (slightly outdated) description of a possible approach.
Hello,
Thank you very much for your great works! Can you provide an example of how to use QAbstractListModel with rust-qt? And further registering it to QML?
Best regards!
The text was updated successfully, but these errors were encountered: