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.