KeyPanel QML Type
样式化键的基类。更多...
| Import Statement: | import QtQuick.VirtualKeyboard.Styles |
| Inherits: |
属性
- control : BaseKey
- soundEffect : url
(since QtQuick.VirtualKeyboard.Styles 1.1)
详细说明
该样式提供的所有关键委托都应基于此类型。
属性文档
control : BaseKey
提供对BaseKey 中属性的访问。
控件中可用属性的列表:
control.key键的 Unicode 代码。control.text键的 Unicode 文本。control.displayText键的显示文本。control.smallText键的小字文本,通常显示在键的角落。control.smallTextVisible小字体的可见性。control.alternativeKeys替代键序列列表。control.enabled当键被启用时,将其设置为 true。control.pressed当键当前被按下时,设置为 true。control.uppercased当按键处于大写状态时,设为 true。
soundEffect : url [since QtQuick.VirtualKeyboard.Styles 1.1]
设置按下按键时播放的声音效果。
该属性在 QtQuick.VirtualKeyboard.Styles 1.1 版本中引入。
© 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.