可以把 QML 类型导入应用程序,使用以下 import 语句在 .qml 文件:
import QtQuick.VirtualKeyboard 2.2 import QtQuick.VirtualKeyboard.Styles 2.2 import QtQuick.VirtualKeyboard.Settings 2.2
除导入类型外,
QT_IM_MODULE
环境变量必须被设为
qtvirtualkeyboard
。更多信息,见
加载插件
.
样式化:
KeyIcon | 具有可调节颜色的键图标 |
KeyPanel | A base type of the styled keys |
KeyboardStyle | Provides a styling interface for the Virtual Keyboard |
SelectionListItem | A base type for selection list item delegates |
TraceCanvas | A specialized Canvas type for rendering Trace objects |
TraceInputKeyPanel | 跟踪输入键的基类型 |
设置:
VirtualKeyboardSettings | 提供用于虚拟键盘的设置 |
输入框架和键:
BackspaceKey | Backspace key for keyboard layouts |
BaseKey | Common parent for all key types |
ChangeLanguageKey | Change language key for keyboard layouts |
EnterKey | Enter key for keyboard layouts |
EnterKeyAction | Provides attached properties for customizing the enter key |
FillerKey | Filler key for keyboard layouts |
FlickKey | Flick key for keyboard layouts |
HandwritingInputPanel | Provides a handwriting panel add-on for the virtual keyboard UI |
HandwritingModeKey | Hand writing mode key for keyboard layouts |
HideKeyboardKey | Hide keyboard key for keyboard layouts |
InputContext | Provides access to an input context |
InputEngine | 将用户输入映射到输入法 |
InputMethod | Base type for creating input method in QML |
InputModeKey | Input mode key for keyboard layouts |
InputPanel | Provides the virtual keyboard UI |
Key | Regular character key for keyboard layouts |
KeyboardColumn | Keyboard column for keyboard layouts |
KeyboardLayout | Keyboard layout |
KeyboardLayoutLoader | Allows dynamic loading of keyboard layout |
KeyboardObserver | Acts as a hub for keyboard event notifications |
KeyboardRow | Keyboard row for keyboard layouts |
ModeKey | Generic mode key for keyboard layouts |
NumberKey | Specialized number key for keyboard layouts |
SelectionListModel | Provides a data model for the selection lists |
ShiftHandler | Manages the shift state |
ShiftKey | Shift key for keyboard layouts |
SpaceKey | Space key for keyboard layouts |
SymbolModeKey | Symbol mode key for keyboard layouts |
Trace | Data model for touch input data |
TraceInputArea | A specialized MultiPointTouchArea for collecting touch input data |
TraceInputKey | A specialized key for collecting touch input data |
VirtualKeyboard | Provides attached properties for customizing the virtual keyboard |