可以把 QML 类型导入应用程序,使用以下 import 语句在 .qml 文件:
import QtQuick.VirtualKeyboard 2.15 import QtQuick.VirtualKeyboard.Styles 2.15 import QtQuick.VirtualKeyboard.Settings 2.15
除导入类型外,
QT_IM_MODULE
环境变量必须被设为
qtvirtualkeyboard
。更多信息,见
加载插件
.
样式化:
具有可调节颜色的键图标 | |
样式化键的基类型 | |
为虚拟键盘提供样式化接口 | |
A base type for selection list item delegates | |
A specialized Canvas type for rendering Trace objects | |
跟踪输入键的基类型 |
设置:
提供用于虚拟键盘的设置 |
输入框架和键:
Backspace key for keyboard layouts | |
Common parent for all key types | |
Change language key for keyboard layouts | |
Enter key for keyboard layouts | |
Provides attached properties for customizing the enter key | |
Filler key for keyboard layouts | |
Provides a handwriting panel add-on for the virtual keyboard UI | |
Hand writing mode key for keyboard layouts | |
Hide keyboard key for keyboard layouts | |
提供对输入上下文的访问 | |
将用户输入映射到输入法 | |
Base type for creating input method in QML | |
Input mode key for keyboard layouts | |
Provides the virtual keyboard UI | |
Regular character key for keyboard layouts | |
Keyboard column for keyboard layouts | |
键盘布局 | |
Allows dynamic loading of keyboard layout | |
Keyboard row for keyboard layouts | |
Generic mode key for keyboard layouts | |
Specialized number key for keyboard layouts | |
Provides a data model for the selection lists | |
管理 Shift 状态 | |
Shift key for keyboard layouts | |
Space key for keyboard layouts | |
Symbol mode key for keyboard layouts | |
Data model for touch input data | |
A specialized MultiPointTouchArea for collecting touch input data | |
A specialized key for collecting touch input data |