如何在不创建全新窗口的情况下创建新屏幕或页面?
我希望能够使用将用户带到应用程序新区域的按钮。 一个很好的例子是 QT Creator 本身如何具有“编辑”和“设计”按钮,将用户带到程序的新区域。
最佳答案
使用QStackedWidget .
来自文档:
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.
关于c++ - 使用 QT creator,如何创建新屏幕?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35977083/