焦点管理Qt Quick Controls
Qt Quick Controls 遵循标准的Qt Quick 焦点系统,同时还提供了一些额外的便利功能。例如,可以使用focusPolicy 属性来控制控件获取焦点的方式。
焦点范围控件
Qt Quick Controls 提供了一系列可作为焦点范围的控件:
支持页眉和页脚的样式化顶级窗口 | |
用于选择选项的组合按钮和下拉列表 | |
允许用户从一组预设的浮点数值中进行选择 | |
提供窗口菜单栏 | |
支持页眉和页脚的样式化页面控件 | |
提供与应用程序样式和主题相匹配的背景 | |
类似弹出窗口的用户界面控件的基础类型 | |
用于通过沿轨道滑动两个控点来选择一组值 | |
可滚动视图 | |
专为搜索功能设计的专用输入字段 | |
允许用户从一组预设值中进行选择 | |
在每个项目之间放置可拖动的分隔线来排列项目 | |
提供基于堆栈的导航模型 | |
支持用户通过横向滑动来浏览页面 | |
允许用户在不同的视图或子任务之间切换 |
另请参阅 《Qt Quick 》中的“键盘焦点”部分。
© 2026 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.