good point jpn.
I agree it would be a good idea to set the wizard size to the size of its biggest page.
Do you know how to do this? By default the wizard adapt to the current page size.
My real problem is slightly different: I have a page in the wizard with a "more" button that changes the wizard page to show addition controls in the page.
The problem is that when the "more" is clicked the wizard page is properly resized, but that does not cause the resize of the Wizard.
In the wizard page constructor I set the wizardpage layout to fixed size
...
layout()->setSizeConstraint
(QLayout::SetFixedSize);
...
...
layout()->setSizeConstraint(QLayout::SetFixedSize);
...
To copy to clipboard, switch view to plain text mode
then when the "more" button is clicked I call a slot hiding/showing a button group with additional controls
...
gbAdvancedOptions->setVisible(yes);
...
...
gbAdvancedOptions->setVisible(yes);
...
To copy to clipboard, switch view to plain text mode
As I said before, the wizard page is properly resized, but the wizard is not, so I can not see the additional controls. I have to resize the wizard manually to see them.
I tried the fallowing solution, but it is not working
...
gbAdvancedOptions->setVisible(yes);
wizard()->adjustSize();
...
...
gbAdvancedOptions->setVisible(yes);
wizard()->adjustSize();
...
To copy to clipboard, switch view to plain text mode
Do you have any other suggestion?
Thanks in advance for your help
Bookmarks