可以把 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 |