PDA

View Full Version : Expandable list as in Qt Designer



mpi
3rd March 2010, 11:15
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

Lykurg
3rd March 2010, 11:35
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.

migel
1st May 2011, 01:11
any examples ?? its easy if you know how. Could you point us with some example ?

ChrisW67
2nd May 2011, 07:04
any examples ?? its easy if you know how. Could you point us with some example ?

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

Another option could be the QToolBox.