Reputation: 91
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.
Upvotes: 0
Views: 652
Reputation: 6080
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.
Upvotes: 1
Reputation: 2668
Use the QTabWidget. You can set different widget to show on every tab
Upvotes: 0