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. Is there a way I can make a nested interactive list?
Forum Updated to NodeBB v4.3 + New Features

Is there a way I can make a nested interactive list?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.0k 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.
  • M Offline
    M Offline
    mandruk1331
    wrote on 18 Jan 2017, 12:49 last edited by
    #1

    I'm using ListView to make a nested list, but is there a way I can make a button which will close the parent list, what I say is:
    +RootText
    *r
    *r
    *r
    And when I press the plus the list will look like this:
    +RootText

    Mandruk1331

    R 1 Reply Last reply 18 Jan 2017, 13:12
    0
    • M mandruk1331
      18 Jan 2017, 12:49

      I'm using ListView to make a nested list, but is there a way I can make a button which will close the parent list, what I say is:
      +RootText
      *r
      *r
      *r
      And when I press the plus the list will look like this:
      +RootText

      R Offline
      R Offline
      Roumed
      wrote on 18 Jan 2017, 13:12 last edited by
      #2

      @mandruk1331
      May be it will be better to use a TreeView, is't it??

      M 1 Reply Last reply 18 Jan 2017, 13:17
      0
      • R Roumed
        18 Jan 2017, 13:12

        @mandruk1331
        May be it will be better to use a TreeView, is't it??

        M Offline
        M Offline
        mandruk1331
        wrote on 18 Jan 2017, 13:17 last edited by
        #3

        @Roumed But can't I make nested lists from a ListView?

        Mandruk1331

        R 1 Reply Last reply 18 Jan 2017, 14:09
        0
        • M mandruk1331
          18 Jan 2017, 13:17

          @Roumed But can't I make nested lists from a ListView?

          R Offline
          R Offline
          Roumed
          wrote on 18 Jan 2017, 14:09 last edited by
          #4

          @mandruk1331

          You can. But ListView has the only level of delegates. So if you make your implementation, to fix this fact you need write a lot of code.
          And as the result of it you will have your own TreeView nested from ListView. If it is useless for you, I recommend you to use usual TreeView. It is not as fast as it should be, but all you need to do is to customize it.

          1 Reply Last reply
          0

          1/4

          18 Jan 2017, 12:49

          • Login

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