M. P.
M. P.

Reputation: 91

Using QT creator, how do I create a new screen?

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

Answers (2)

Mailerdaimon
Mailerdaimon

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

Apin
Apin

Reputation: 2668

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

Upvotes: 0

Related Questions