Results 1 to 4 of 4

Thread: Expandable list as in Qt Designer

  1. #1
    Join Date
    Apr 2009
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Expandable list as in Qt Designer

    Dear All,

    How do I create a list with buttons for expanding subgroups as is done in Qt's designer app? Screenshot of the desired functionality is attached.

    Best regards,

    Mads
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Expandable list as in Qt Designer

    Look in the sources of designer. They are public available.

    As I remember they are using a simple QTreeWidget/QTreeView with a custom delegate which is drawing the top level items in a button shape. It's easy to code that by yourself.

  3. The following user says thank you to Lykurg for this useful post:

    mpi (3rd March 2010)

  4. #3
    Join Date
    Apr 2011
    Posts
    132
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Expandable list as in Qt Designer

    any examples ?? its easy if you know how. Could you point us with some example ?

  5. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Expandable list as in Qt Designer

    Quote Originally Posted by migel
    any examples ?? its easy if you know how. Could you point us with some example ?
    Quote Originally Posted by Lykurg View Post
    Look in the sources of designer. They are public available.
    Another option could be the QToolBox.

Similar Threads

  1. How can I create a widget list as Qt Designer?
    By ricardo in forum Qt Programming
    Replies: 5
    Last Post: 3rd May 2009, 12:54
  2. Designer plugin & dynamic value list for text input
    By janus in forum Qt Programming
    Replies: 0
    Last Post: 4th April 2009, 12:41
  3. QTreeView and expandable items
    By SiLiZiUMM in forum Qt Programming
    Replies: 6
    Last Post: 29th April 2008, 13:21
  4. Expandable Layout
    By adskol in forum Qt Tools
    Replies: 2
    Last Post: 25th January 2007, 22:47
  5. QTable with expandable cells
    By sunil.thaha in forum Qt Programming
    Replies: 2
    Last Post: 20th April 2006, 12:42

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
  •  
Qt is a trademark of The Qt Company.