Qt Virtual Keyboard C++ Classes
提供用于实现虚拟键盘输入方法的类。更多
命名空间
包含虚拟键盘类使用的枚举 |
类
输入法基类 | |
虚拟键盘输入方法的应用程序定义字典 | |
应用程序定义字典的字典管理 | |
提供对输入上下文的访问 | |
InputEngine 类提供支持 C++ 和 QML 集成的输入引擎 | |
充当键盘事件通知中心 | |
用于选择列表的列表模型 | |
跟踪是触摸输入数据的数据模型 |
详细说明
要包含模块类的定义,请使用以下指令:
#include <QtVirtualKeyboard>
使用模块
使用 Qt 模块需要直接或通过其他依赖关系与模块库链接。有几种构建工具为此提供了专门支持,包括CMake和qmake。
使用 CMake 构建
使用find_package()
命令在Qt6
软件包中找到所需的模块组件:
find_package(Qt6 REQUIRED COMPONENTS VirtualKeyboard) target_link_libraries(mytarget PRIVATE Qt6::VirtualKeyboard)
更多信息,请参阅CMake 入门。
使用 qmake
要链接此模块,请在 qmake.pro
文件中添加以下一行:
QT += virtualkeyboard
© 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.