Tree model Table view
-
Hi,
QListView offers function setRootIndex to move between nodes, if is way to use something similar in qml table view ?
-
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
-
Thanks, Jens i'm looking something like that.
I want to you tree model with list view in qml.