PDA

View Full Version : complexe wizard with designer



patcito
24th June 2006, 21:54
Hey all,
I would like to do a complex wizard such as the one that is given with qt4 assistant. The difference is that I want to do each page with designer. The tutorial exemple uses set Layout to change the content of each page. What would be the equivalent of setLayout if I design a dialog for each page with designer? such as page1.ui and ui_page1.h page2.ui and ui_page2.h etc...

thanx in advance

Pat

wysota
24th June 2006, 22:48
IMO you should use a QStackedWidget and add all "dialogs" as pages of the widget. The rest of the layout (buttons, titles, image) can be done only once for the whole wizard.

patcito
24th June 2006, 22:59
but with qstackwidget, the user can change page as he wants. What if I want to oblige the user to go to a certain page depending on the option he choose on a page?

jacek
24th June 2006, 23:29
but with qstackwidget, the user can change page as he wants.
No, he can't. Qt Designer shows a bit different widget in the preview.

jrideout
27th June 2006, 22:48
I think the stack widget is the best way to go in your case, but when I want to embed a ui file in something I create a QWidget in designer. Then you can use that Qwidget inside a Qframe or similar container in some other ui form.