Example of correctly operating C++ model with QML TreeView
QML and Qt Quick
5
Posts
3
Posters
4.2k
Views
2
Watching
-
Hi fiends,
I am trying to the best of my ability to make QML TreeView to work with C++ model.
I am cennecting Data Model as C++ class
qmlRegisterType<TreeModel>("dataModel", 1, 0, "DataModel");
If you have working example of TreeView working with C++ model such way, please share it.
-
Hi fiends,
I am trying to the best of my ability to make QML TreeView to work with C++ model.
I am cennecting Data Model as C++ class
qmlRegisterType<TreeModel>("dataModel", 1, 0, "DataModel");
If you have working example of TreeView working with C++ model such way, please share it.
-
-
And you can get a look here if you need more details :
http://forum.qt.io/topic/56497/request-treeview-c-model-to-qml-example/2