QToolbox several items current?



  • Hi guys,

    out of the box it seems a QToolbox can only show one current item (only one "container" can be opened at one time).

    Is there a way to tweak QToolbox to allow several items to be opened? If not, is there any widget that can be used to achive the same? Can we get a treeview to show arbitrary widgets in a cell? Or do I have to "handcraft" something with buttons and hide/show from gorund off?

    Cheers,

    Jan



  • [quote author="Knacktus" date="1298102795"]
    Is there a way to tweak QToolbox to allow several items to be opened?
    [/quote]

    Not without modifying the source code of the toolbox.

    [quote author="Knacktus" date="1298102795"]If not, is there any widget that can be used to achive the same? Can we get a treeview to show arbitrary widgets in a cell?[/quote]

    Yes, you can. Have a look at "QAbstractItemView::setIndexWidget() ":http://doc.qt.nokia.com/4.7/qabstractitemview.html#setIndexWidget, or if you use the QxxxWidget versions, there are setItemWidget() equivalents.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.