Tree View on QML
-
Sorry, i'm a bit newbie with about QML stuff. What i'm trying to do is to display a Tree View (Like QTreeView does) with a big amount of items. Is this feasible? I've been looking but as far as I know there's no built-in way. (Or I got it wrong).
-
Nevermind. I failed hardly. http://qt-project.org/doc/qt-4.8/qml-listview.html
-
You might want to take a look at this thread as I made a proof of concept implementation there: "http://qt-project.org/forums/viewthread/30521":http://qt-project.org/forums/viewthread/30521
-
:) Wow this post was unanswered for a long time which
had me post a simplified version of the code I used in my project at http://www.codeproject.com/Articles/632795/QML-TreeModel-and-TreeView a few days back. Component recursion and apropriate javascript object for the model can build trees (etc.) of any complexity. The code is dynamic and can add / nest subnodes to any depth.