本页内容

Qt Virtual Keyboard 应用程序 API

您可以在 .qml 文件中使用以下导入语句,将 QML 类型导入到您的应用程序中:

import QtQuick.VirtualKeyboard
import QtQuick.VirtualKeyboard.Settings

除了导入类型外,还必须将QT_IM_MODULE 环境变量设置为qtvirtualkeyboard 。有关详细信息,请参阅“加载插件”。

Virtual Keyboard

QML 类型

EnterKeyAction

提供用于自定义回车键的附加属性

HandwritingInputPanel

为虚拟键盘 UI 提供手写面板插件

InputPanel

提供虚拟键盘 UI

VirtualKeyboard

提供用于自定义虚拟键盘的附加属性

C++ 类型

QVirtualKeyboardDictionary

用于虚拟键盘输入法的应用程序定义词典

QVirtualKeyboardDictionaryManager

用于应用程序定义词典的词典管理

Virtual Keyboard Settings

QML 类型

VirtualKeyboardSettings

提供虚拟键盘的设置

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