SubIndicatorStyle QML Type
定义子指示器委托的样式。更多...
| Import Statement: | import Qt.labs.StyleKit |
| Inherits: | |
| Status: | Technology preview |
此类型处于技术预览阶段,可能会发生变更。
属性
- foreground : DelegateStyle
详细说明
SubIndicatorStyle 继承自DelegateStyle ,并增加了foreground 属性。它用于为包含多个指示器的控件(如SpinBox )中的子指示器委托(例如indicator.first 和indicator.second )设置样式。对于SpinBox ,indicator.first 用于设置增量按钮的样式,而indicator.second 用于设置减量按钮的样式。它等同于IndicatorStyle ,但本身不包含子指示器。
注意: Qt.labs 模块中的类型在未来版本中不保证保持兼容。
另请参阅 IndicatorStyle 、DelegateStyle 、ControlStyle 、ControlStateStyle 以及《FallbackStyle 参考》。
属性文档
foreground : DelegateStyle
用于设置此指示器前景元素样式的分组属性。前景通常表示指示器内部渲染的复选标记、图标或箭头。
© 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.