Qt Virtual Keyboard API for Applications

可以把 QML 类型导入应用程序,使用以下 import 语句在 .qml 文件:

import QtQuick.VirtualKeyboard
import QtQuick.VirtualKeyboard.Settings
					

除导入类型外, QT_IM_MODULE 环境变量必须被设为 qtvirtualkeyboard 。更多信息,见 加载插件 .

Virtual Keyboard

QML 类型

EnterKeyAction

Provides attached properties for customizing the enter key

HandwritingInputPanel

Provides a handwriting panel add-on for the virtual keyboard UI

InputPanel

Provides the virtual keyboard UI

VirtualKeyboard

Provides attached properties for customizing the virtual keyboard

C++ types

QVirtualKeyboardDictionary

An application-defined dictionary for virtual keyboard input methods

QVirtualKeyboardDictionaryManager

Dictionary management for application-defined dictionaries

Virtual Keyboard Settings

QML 类型

VirtualKeyboardSettings

提供用于虚拟键盘的设置