Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (anonymous):

I'm creating a simple greeter application to greet a user after a new installation. Using Qt Designer, I have run into a snag. I have no idea how to make it so the single window app can page over, as opposed to spawning a new window. That is, when say "Next" is clicked, the content of the window will change entirely. Also, I do not know how to make it so the elements of the window will reposition or resize when the size of the window is changed on runtime.

OpenStudy (anonymous):

Look into QWizard. It's a class that provides all the necessary components for a wizard-style window with a next button and various pages. Alternatively, you could use a QStackedWidget to hold your various pages, and then use QStackedWidget::setCurrentIndex(pageIndex) to switch.

OpenStudy (anonymous):

For the resizing, you'll need a layout. Place your UI elements into the window, then simply right click into the background of your window, choose 'Layout' and 'Lay out as a ...". Which layout you choose depends on how your elements are arranged. The layout will take care of resizing and rearranging your widgets when the window is resized.

OpenStudy (anonymous):

I was using QWizard in the Designer first, and didn't see any options for paging and such. It wasn't obvious.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!