Qt 框架中是否有与 Swing CardLayout 等效的组件?
我正在使用 Qt 框架设计一个应用程序,我想避免使用多个对话框,因为我认为打开许多对话框会变得混乱。我想知道Qt框架中是否有类似Java的CardLayout的东西。
感谢您的帮助。
I am designing an Application using the Qt framework, and I want to avoid using multiple dialogs simply because I think it can get messy with having many dialogs open. I was wondering if there was something like Java's CardLayout in the Qt Framework.
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
QStackedWidget
与 CardLayout 非常接近添加任意数量的小部件,每次加载时,您都可以通过调用
setCurrentIndex
The
QStackedWidget
is very close to the CardLayoutAdd as many widgets as you want and every time you load it you can change the widget that is displayed by calling the
setCurrentIndex