本页内容

ModeKey QML Type

键盘布局的通用模式键。更多...

Import Statement: import QtQuick.VirtualKeyboard.Components
Since: QtQuick.VirtualKeyboard 2.0
Inherits:

Key

属性

详细说明

该键提供通用模式按钮功能。

按下该键可切换当前模式,且不会触发用于输入法处理的键盘事件。

ModeKey 适用于需要将特定模式“开启/关闭”,且模式切换无需更改键盘布局的情况。使用此组件时,无论处于何种模式, displayText 都应保持不变,因为键盘样式会直观地显示当前状态。

属性文档

mode : bool

该属性指定当前模式。

默认值为 false。

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