Nesta página

QtVirtualKeyboard Namespace

Contém enums utilizadas pelas classes do teclado virtual. Mais...

Cabeçalho: #include <QtVirtualKeyboard>
CMake: find_package(Qt6 REQUIRED COMPONENTS VirtualKeyboard)
target_link_libraries(mytarget PRIVATE Qt6::VirtualKeyboard)
qmake: QT += virtualkeyboard

Tipos

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

Descrição detalhada

Documentação de tipos

enum class QtVirtualKeyboard::KeyType

Tipo de tecla do teclado virtual.

ConstanteValor
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

Especifica uma função do teclado a ser executada pelo teclado virtual.

Essa enumeração é usada como um alias para funções de teclado predefinidas, como ocultar o teclado virtual. A enumeração é usada internamente pelo teclado virtual para implementar funcionalidades comuns. O valor da enumeração é passado para Keyboard.doKeyboardFunction() para execução.

ConstanteValor
QtVirtualKeyboard::KeyboardFunction::HideInputPanel0
QtVirtualKeyboard::KeyboardFunction::ChangeLanguage1
QtVirtualKeyboard::KeyboardFunction::ToggleHandwritingMode2

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