how to "hide" a QBoxLayout in a dialog?
-
my dialogs can dynamically hide sections depending on the app configuration. I can easily do that with any object derived fro QWidget, since there is a "hide" method, but what about QBoxLayout? must i enclose that in some QWidget container just to get access to a hide() method? thanks
-
i was able to "promote" the QBoxLayout to a widget, and get the same functionality, then i could just hide the widget :D
-
Layouts are not visual elements. There's no hiding them because they are not visible. They are only sort of a "children geometry managers" for widgets. So to hide every widget in a layout you either iterate over its elements and hide them individually or enclose them in a parent widget and hide that.
-
i was able to "promote" the QBoxLayout to a widget, and get the same functionality, then i could just hide the widget :D