0

I want to create an preferences window somehow similar to VLC. For that purpose I added a QTreeWidget for selecting the different preferences. I want to group the QWidgets, which belong together, in a parent QWidget so I can hide them all at once. I think that is the right way? My problem now it that the Qt Designer does not give the posibillity to hide widgets. What would be the best way to create multiple overlapping widgets, so someone can click on an item in the QTreeWidget, and only the relevant widgets are shown?

honiahaka10
  • 772
  • 4
  • 9
  • 29
  • 1
    http://doc.qt.io/qt-4.8/qtabwidget.html#details – Marek R Aug 18 '16 at 21:38
  • @MarekR Thanks for your answer but I wanted to avoid QTabWidget since that would not look very good with a lot of tabs. But I found `QStackedWidget` which exactly fulfills my requirements. – honiahaka10 Aug 18 '16 at 23:09
  • 1
    `QTabWidget` is matching better settings in VLC. You have to just tweak visualization of tabs, that is it. With `QStackedWidget` you will simply implement functionality already done in `QTabWidget`. – Marek R Aug 19 '16 at 11:41

1 Answers1

0

Never mind i found that QStackedWidget exactly fullfils my requirements :)

honiahaka10
  • 772
  • 4
  • 9
  • 29