本页内容

Qt Virtual Keyboard 用于高级用例的 API

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

Styles

QML 类型

KeyIcon

颜色可调的键图标

KeyPanel

样式化按键的基础类型

KeyboardStyle

为虚拟键盘提供样式设置接口

SelectionListItem

用于选择列表项委托的基类

TraceCanvas

用于渲染 Trace 对象的专用 Canvas 类型

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

Trace 是用于触摸输入数据的数据模型

QtVirtualKeyboard

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

QtVirtualKeyboard::KeyType

虚拟键盘按键的键类型

QtVirtualKeyboard::KeyboardFunction

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

© 2026 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.