The Qt Virtual Keyboard project provides an input framework and reference keyboard frontend for Qt 6 on Linux Desktop/X11, Windows Desktop, and Boot2Qt targets.
输入框架使编写自定义输入法 (或集成第 3 方输入引擎) 变得容易。输入法可以采用 C++ 或 QML 实现。
Using a Qt module's C++ API requires linking against the module library, either directly or through other dependencies. Several build tools have dedicated support for this, including CMake and qmake .
使用
find_package()
command to locate the needed module component in the
Qt6
包:
find_package(Qt6 REQUIRED COMPONENTS VirtualKeyboard)
target_link_libraries(mytarget PRIVATE Qt6::VirtualKeyboard)
更多细节,见 构建采用 CMake 概述。
To configure the module for building with qmake, add the module as a value of the
QT
variable in the project's .pro file:
QT += virtualkeyboard
Qt Virtual Keyboard 在商业许可下是可用的来自 Qt 公司 。此外,它是可用的根据 GNU GPL (一般公共许可) 第 3 版 。见 Qt 许可 进一步了解细节。
Furthermore, Qt Virtual Keyboard potentially contains third party modules under the following permissive licenses:
| OpenWnn | Apache 许可 2.0 |
| PinyinIME | Apache 许可 2.0 |
| 繁体中文 IME (tcime) | Apache 许可 2.0 和 BSD 3 条款新 (或修订) 许可 |