KeyPanel QML Type
样式键的基本类型。更多
| Import Statement: | import QtQuick.VirtualKeyboard.Styles |
| Inherits: |
属性
- control : Item
- soundEffect : url
(since QtQuick.VirtualKeyboard.Styles 1.1)
详细说明
样式提供的所有关键委托都应基于此类型。
属性文档
control : Item |
提供对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 |
设置按键按下时播放的声音效果。
该属性在 QtQuick.VirtualKeyboard.Styles 1.1 中引入。
© 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.