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?

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 995 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.
  • mandruk1331M Offline
    mandruk1331M Offline
    mandruk1331
    wrote on 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
    0
    • mandruk1331M mandruk1331

      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 last edited by
      #2

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

      mandruk1331M 1 Reply Last reply
      0
      • R Roumed

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

        mandruk1331M Offline
        mandruk1331M Offline
        mandruk1331
        wrote on last edited by
        #3

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

        Mandruk1331

        R 1 Reply Last reply
        0
        • mandruk1331M mandruk1331

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

          R Offline
          R Offline
          Roumed
          wrote on 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

          • Login

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