QtVirtualKeyboard 命名空间
包含虚拟键盘类使用的枚举。 更多...
头文件 | #include <QtVirtualKeyboard> |
CMake | find_package(Qt6 REQUIRED COMPONENTS VirtualKeyboard) target_link_libraries(mytarget PRIVATE Qt6::VirtualKeyboard) |
qmake | QT += virtualkeyboard |
类型
枚举类 | KeyType { BaseKey, BackspaceKey, ChangeLanguageKey, EnterKey, FillerKey, …, FlickKey } |
枚举类 | KeyboardFunction { HideInputPanel, ChangeLanguage, ToggleHandwritingMode } |
flags | KeyboardFunctionKeys |
类型文档
枚举类 QtVirtualKeyboard::KeyType
虚拟键盘键的类型。
常量 | 值 |
---|---|
QtVirtualKeyboard::KeyType::BaseKey | 0 |
QtVirtualKeyboard::KeyType::BackspaceKey | 1 |
QtVirtualKeyboard::KeyType::ChangeLanguageKey | 2 |
QtVirtualKeyboard::KeyType::EnterKey | 3 |
QtVirtualKeyboard::KeyType::FillerKey | 4 |
QtVirtualKeyboard::KeyType::HandwritingModeKey | 5 |
QtVirtualKeyboard::KeyType::HideKeyboardKey | 6 |
QtVirtualKeyboard::KeyType::InputModeKey | 7 |
QtVirtualKeyboard::KeyType::Key | 8 |
QtVirtualKeyboard::KeyType::ModeKey | 9 |
QtVirtualKeyboard::KeyType::NumberKey | 10 |
QtVirtualKeyboard::KeyType::ShiftKey | 11 |
QtVirtualKeyboard::KeyType::SpaceKey | 12 |
QtVirtualKeyboard::KeyType::SymbolModeKey | 13 |
QtVirtualKeyboard::KeyType::FlickKey | 14 |
枚举类 QtVirtualKeyboard::KeyboardFunction
指定虚拟键盘要执行的功能。
此枚举用作预定义键盘功能的别名,例如隐藏虚拟键盘。该枚举在虚拟键盘内部用作实现常规功能的别名。枚举值传递给 Keyboard.doKeyboardFunction() 以执行。
常量 | 值 |
---|---|
QtVirtualKeyboard::KeyboardFunction::HideInputPanel | 0 |
QtVirtualKeyboard::KeyboardFunction::ChangeLanguage | 1 |
QtVirtualKeyboard::KeyboardFunction::ToggleHandwritingMode | 2 |
© 2024 The Qt Company Ltd. 本文档中包含的贡献的文档版权属于各自的拥有者。本提供的文档根据由自由软件基金会发布的 GNU 自自由文档许可证版本 1.3 许可。Qt 和相应的标志是 The Qt Company Ltd. 在芬兰和/或世界其他国家的商标。所有其他商标均为其各自所有者的财产。