Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
Description
Existing models in QML can't be used for your own views because they don't implement any public model interface. It's stupid to create your own models when you could reuse components provided by the framework and it kind of misses the whole point of the framework.
class MyListView : public QDeclarativeItem { Q_OBJECT Q_PROPERTY(QAbstractItemModel* model READ model WRITE setModel NOTIFY modelChanged) ... }