本页内容

Qt Quick 示例 - 键盘交互

本页面汇集了 QML 键盘交互示例。

演示键盘导航的网格和列表元素,其操作被左侧的占位符上下文菜单打断

Qt Quick 中的“键盘焦点”部分综合介绍了处理键盘焦点的各种方法。如需了解更多信息,请访问 Qt Quick 中的“键盘焦点”部分。

运行示例

您可以通过以下方式运行示例:

使用键盘上的方向键,焦点将依次移至各菜单和GridView 。

示例项目 @ code.qt.io

© 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.