导航控件
Qt Quick Controls 提供多种导航模式可供选择。
可使用轻扫手势打开和关闭的侧边面板 | |
提供基于堆栈的导航模式 | |
让用户可以通过横向轻扫浏览页面 | |
允许用户在不同视图或子任务之间切换 | |
具有适合 TabBar 外观的按钮 |
以下各节提供了根据使用情况选择适当类型导航模式的指南。
堆栈视图控件
StackView StackView 根据后进先出原则工作:在堆栈中最后推送的页面是可见的。弹出一个页面会移除最后一个页面,并使前一个页面可见。
轻扫视图控件
SwipeView 提供了一种简化水平分页滚动的导航模型。底部的页面指示器显示当前的活动页面。
TabBar 控件
TabBar 是一个带有图标或文字的栏,允许用户在不同的子任务、视图或模式之间切换。
TabButton 控件
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.