Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QToolbox several items current?
Qt 6.11 is out! See what's new in the release blog

QToolbox several items current?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.2k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    Knacktus
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      [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.

      http://www.catb.org/~esr/faqs/smart-questions.html

      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