0

How can I create a new screen or page without creating a whole new window?

I would like to be able to use a push button that brings the user to a new area of the application. A good example is in QT Creator itself how it has the "Edit" and "Design" buttons that bring the user to a new area of the program.

2 Answers 2

1

Use QStackedWidget.

From the docs:

The QStackedWidget class provides a stack of widgets where only one widget is visible at a time.

QStackedWidget can be used to create a user interface similar to the one provided by QTabWidget. It is a convenience layout widget built on top of the QStackedLayout class.

0

Use the QTabWidget. You can set different widget to show on every tab

1
  • I looked at QTabWidget and that is almost what I am looking for. Using that I would still have the list of tabs across the top. Is there something like that, that will create a fully new page? And that hopefully can be triggered by a standard push button?
    – M. P.
    Mar 14, 2016 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.