[Interest] Changing the Layout of a Widget
Michael Jackson
imikejackson at gmail.com
Thu Jun 28 21:45:48 CEST 2012
I would like to swap layouts in a QWidget. Is that possible? I see the the setLayout(...) and layout() functions but when I try to set my layout using setLayout() I get an error message saying that there is already a layout. Ok, Sounds reasonable. There doesn't seem to be any "removeLayout()" method though. I tried setLayout(NULL) that I got another error saying setting a layout to 0 is not allowed.
The issue is that depending on what is present I would like to display a QLabel that is better laid out with a Grid Layout and some spacers rather than my current VerticalLayout scheme.
Searching google indicates that this may not really be possible.
Thanks for any advice.
----
Mike Jackson
More information about the Interest
mailing list