Results 1 to 2 of 2

Thread: Collapsable sections in ListView

  1. #1
    Join Date
    May 2010
    Location
    Rousse, Bulgaria
    Posts
    25
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Collapsable sections in ListView

    Hello,
    I've been reading the docs and I'm pretty sure that the answer is 'No', but a confirmation never hurt anybody
    Is it possible to expand/collapse sessions in a ListView in QtQuick 2.0?
    I have a nested list inside my delegate to achieve the result but I thought that if a single list can do the trick, I should save the overhead of having another one.

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Collapsable sections in ListView

    I don't think there is out of the box functionality for that.

    Aside from your solution, you could also do it with the help of the model, e.g. having a "collapsed" property or similar on each item use it to determine if the normal item delegate has height 0 or not.

    Cheers,
    _

Similar Threads

  1. MDI with resizable sections
    By Cruz in forum Qt Programming
    Replies: 3
    Last Post: 28th December 2011, 06:19
  2. Connecting different GUI sections
    By ajb in forum Qt Programming
    Replies: 4
    Last Post: 13th May 2009, 11:47
  3. Replies: 4
    Last Post: 19th April 2007, 13:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.