Why can't I set a layout for a page in a QStackedWidget in designer?
Posted
by
cppguy
on Stack Overflow
See other posts from Stack Overflow
or by cppguy
Published on 2012-09-01T00:08:52Z
Indexed on
2012/09/01
3:38 UTC
Read the original article
Hit count: 114
Steps to reproduce in designer for Qt 4.8.0
- I create a new dialog form in Qt Designer
- I add a QStackedWidget to the dialog
- I set the layout of the dialog to make the stacked layout size with the dialog
- I add a few controls to page one in the stacked widget
- I select the first page in the stacked widget in the right hand tree view of controls
- The icon next to that page (which is a QWidget) shows the page is missing a layout
When I click one of the layout buttons above, it doesn't change the layout of the page QWidget, it changes the layout of the dialog even though I had explicitly selected the page.
Is this a bug in designer? Am I missing something? I really don't want to add the layouts programatically as that prevents me from being able to layout the pages in designer in the same .ui file
© Stack Overflow or respective owner