Qt Virtual Keyboard 高级用例 API

这些 QML 类型属于虚拟键盘插件供应商、样式提供商和键盘布局类别。应用程序或中间件不应使用它们。

Styles

QML 类型

KeyIcon

颜色可调的按键图标

KeyPanel

风格化按键的基本类型

KeyboardStyle

为虚拟键盘提供样式接口

SelectionListItem

选择列表项委托的基本类型

TraceCanvas

用于呈现跟踪对象的专用画布类型

TraceInputKeyPanel

跟踪输入键的基本类型

Components

QML 类型

BackspaceKey

键盘布局的退格键

BaseKey

所有按键类型的通用父类

ChangeLanguageKey

键盘布局的更改语言键

EnterKey

键盘布局的回车键

FillerKey

填充键,用于键盘布局

FlickKey

轻触键,用于键盘布局

HandwritingModeKey

手写模式键,用于键盘布局

HideKeyboardKey

隐藏键盘键,用于键盘布局

InputModeKey

输入模式键,用于键盘布局

Key

常规字符键,用于键盘布局

KeyboardColumn

键盘布局的键盘列

KeyboardLayout

键盘布局

KeyboardLayoutLoader

允许动态加载键盘布局

KeyboardRow

键盘布局的键盘行

ModeKey

用于键盘布局的通用模式键

NumberKey

用于键盘布局的专用数字键

ShiftKey

用于键盘布局的 Shift 键

SpaceKey

空格键,用于键盘布局

SymbolModeKey

用于键盘布局的符号模式键

TraceInputArea

用于收集触摸输入数据的专用 MultiPointTouchArea

TraceInputKey

用于收集触摸输入数据的专用键

C++ 类型

QVirtualKeyboardAbstractInputMethod

输入方法基类

QVirtualKeyboardInputContext

提供对输入上下文的访问

QVirtualKeyboardInputEngine

InputEngine 类提供支持 C++ 和 QML 集成的输入引擎

QVirtualKeyboardObserver

充当键盘事件通知中心

QVirtualKeyboardSelectionListModel

用于选择列表的列表模型

QVirtualKeyboardTrace

跟踪是触摸输入数据的数据模型

QtVirtualKeyboard

包含虚拟键盘类使用的枚举

QtVirtualKeyboard::KeyType

虚拟键盘键的键类型

QtVirtualKeyboard::KeyboardFunction

指定虚拟键盘要执行的键盘功能

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.