QtVirtualKeyboard Namespace

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

头文件: #include <QtVirtualKeyboard>
CMake: find_package(Qt6 REQUIRED COMPONENTS VirtualKeyboard)
target_link_libraries(mytarget PRIVATE Qt6::VirtualKeyboard)
qmake: QT += virtualkeyboard

类型

enum class KeyType { BaseKey, BackspaceKey, ChangeLanguageKey, EnterKey, FillerKey, …, FlickKey }
enum class KeyboardFunction { HideInputPanel, ChangeLanguage, ToggleHandwritingMode }
flags KeyboardFunctionKeys

详细说明

类型文档

enum class QtVirtualKeyboard::KeyType

虚拟键盘键的键类型。

常数
QtVirtualKeyboard::KeyType::BaseKey0
QtVirtualKeyboard::KeyType::BackspaceKey1
QtVirtualKeyboard::KeyType::ChangeLanguageKey2
QtVirtualKeyboard::KeyType::EnterKey3
QtVirtualKeyboard::KeyType::FillerKey4
QtVirtualKeyboard::KeyType::HandwritingModeKey5
QtVirtualKeyboard::KeyType::HideKeyboardKey6
QtVirtualKeyboard::KeyType::InputModeKey7
QtVirtualKeyboard::KeyType::Key8
QtVirtualKeyboard::KeyType::ModeKey9
QtVirtualKeyboard::KeyType::NumberKey10
QtVirtualKeyboard::KeyType::ShiftKey11
QtVirtualKeyboard::KeyType::SpaceKey12
QtVirtualKeyboard::KeyType::SymbolModeKey13
QtVirtualKeyboard::KeyType::FlickKey14

enum class QtVirtualKeyboard::KeyboardFunction

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

该枚举用作预定义键盘功能的别名,例如隐藏虚拟键盘。虚拟键盘内部使用该枚举来实现常用功能。枚举值将传递给 Keyboard.doKeyboardFunction() 以供执行。

常量
QtVirtualKeyboard::KeyboardFunction::HideInputPanel0
QtVirtualKeyboard::KeyboardFunction::ChangeLanguage1
QtVirtualKeyboard::KeyboardFunction::ToggleHandwritingMode2

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