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. How to implement selectable treeview folder

How to implement selectable treeview folder

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 699 Views
  • 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.
  • W Offline
    W Offline
    white
    wrote on 8 Sept 2021, 23:34 last edited by
    #1

    Hello all, I would like to implment the UI like the following image.

    it look like window folder but the data is not really from file system.
    it has selectable checkbox which and make sub child select together or unselected.
    it has like connection between items.

    how to implment it ? is there any good sample or similar component like this ?

    ![alt text](UCkji.png image url)

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bob64
      wrote on 9 Sept 2021, 14:08 last edited by Bob64 9 Sept 2021, 14:14
      #2

      It depends on which version of Qt you are using. If you are using 5.x, you can use the TreeView component. The main problem with this is that it is from QML Controls 1 which is deprecated, and a replacement has never been implemented in the current Controls 2.

      Qt have recently started offering a modern tree view control as a paid add-on, but I believe it is only compatible with the most recent 5.x releases, and not yet with 6.x at all.

      BTW, the above assumed you want to use QML as you have posted in this area, but if you are just starting out it might be worth considering using Qt Widgets if you are creating a traditional desktop-style UI with heavy use of tree controls and so on.

      W 1 Reply Last reply 9 Sept 2021, 17:31
      0
      • B Bob64
        9 Sept 2021, 14:08

        It depends on which version of Qt you are using. If you are using 5.x, you can use the TreeView component. The main problem with this is that it is from QML Controls 1 which is deprecated, and a replacement has never been implemented in the current Controls 2.

        Qt have recently started offering a modern tree view control as a paid add-on, but I believe it is only compatible with the most recent 5.x releases, and not yet with 6.x at all.

        BTW, the above assumed you want to use QML as you have posted in this area, but if you are just starting out it might be worth considering using Qt Widgets if you are creating a traditional desktop-style UI with heavy use of tree controls and so on.

        W Offline
        W Offline
        white
        wrote on 9 Sept 2021, 17:31 last edited by
        #3

        @Bob64 , thanks for your reply.
        Yes, I prefer to use QML(5.14.2 ) while I am wondering whether it is easy if using widget instead of QML.

        and I am newbie to QML, is there any document which mentioned the control 1 is deprecated ?.

        B 1 Reply Last reply 9 Sept 2021, 20:37
        0
        • W white
          9 Sept 2021, 17:31

          @Bob64 , thanks for your reply.
          Yes, I prefer to use QML(5.14.2 ) while I am wondering whether it is easy if using widget instead of QML.

          and I am newbie to QML, is there any document which mentioned the control 1 is deprecated ?.

          B Offline
          B Offline
          Bob64
          wrote on 9 Sept 2021, 20:37 last edited by
          #4

          @white see the Warning near the top of this page: https://doc.qt.io/qt-5/qtquick-controls-qmlmodule.html

          W 1 Reply Last reply 11 Sept 2021, 01:18
          0
          • B Bob64
            9 Sept 2021, 20:37

            @white see the Warning near the top of this page: https://doc.qt.io/qt-5/qtquick-controls-qmlmodule.html

            W Offline
            W Offline
            white
            wrote on 11 Sept 2021, 01:18 last edited by
            #5

            @Bob64 , Thanks for your information.

            1 Reply Last reply
            0
            • W Offline
              W Offline
              white
              wrote on 11 Sept 2021, 01:41 last edited by
              #6

              The issue seem very not easy, so not much reply :-)

              1 Reply Last reply
              0

              1/6

              8 Sept 2021, 23:34

              • Login

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