Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Tree View on QML

Tree View on QML

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 10.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dimbreath
    wrote on last edited by
    #1

    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).

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dimbreath
      wrote on last edited by
      #2

      Nevermind. I failed hardly. http://qt-project.org/doc/qt-4.8/qml-listview.html

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jens
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • U Offline
          U Offline
          ustulation
          wrote on last edited by
          #4

          :) 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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved