You could try passing Qt::Window as second parameter to QWizard constructor if you want to make it appear as an ordinary window instead of a dialog.
You could try passing Qt::Window as second parameter to QWizard constructor if you want to make it appear as an ordinary window instead of a dialog.
J-P Nurmi
sorry, how do I do that, in the header file?
Qt Code:
QWizard wizard(parent, Qt::Window); // <--- wizard.addPage(...); wizard.addPage(...); ... wizard.exec();To copy to clipboard, switch view to plain text mode
J-P Nurmi
I did it. The "maximize" button appeared but when I press it it streaches out the window to the maximum only vertically, the horizontal size still stays the same![]()
Did you set any maximum sizes (widths) and/or did you adjust any size policies?
Edit: Oh, and which platform are you working on? Could you edit your user profile to indicate that? Thanks.
J-P Nurmi
not for the whole form. I have some size policies for the widgets and spacers inside the form so they streaches out correctly but no size policies for the whole form.
I did the pages in QT Designer, then converted them by uic and inserted the result into my program. In the Designer in the Form Preview I have the maximize button and it work fine, but when I insert it to the overall program I get that trouble.
I work on Windows for now.
I can assure you that it works with minimal test wizard. Did you subclass QWizard? If so, I'd suggest trying out with a plain QWizard to see if your subclass does something faulty. Furthermore, if it doesn't resolve the problem, try leaving out page by page to see which page could cause it.
J-P Nurmi
slava (12th February 2008)
I found it! It was the pictures at the top and at the left which was set by setPixMap, they were limiting the sizes of the window, once I took those off the window got able to be any size.
thank you!![]()
Bookmarks