Tree model Table view
QML and Qt Quick
4
Posts
3
Posters
1.5k
Views
1
Watching
-
It doesn't look like TreeView has got a function for that. But you could access its Children and move them to another Model or you'll have to create your model in Cpp with a function like setRootIndex and pass it to qml.
For further information please read:
"QtQuick Model from Cpp":https://qt-project.org/doc/qt-5.1/qtquick/qtquick-modelviewsdata-cppmodels.html -
Not sure exactly what your use case it but it sounds a bit similar to this: https://codereview.qt-project.org/#change,49564