本页内容

KeyPanel QML Type

样式化键的基类。更多...

Import Statement: import QtQuick.VirtualKeyboard.Styles
Inherits:

Item

属性

详细说明

该样式提供的所有关键委托都应基于此类型。

属性文档

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.