HandleStyle QML Type
定义了诸如Switch 、Slider 和RangeSlider 等控件的控件柄样式。更多内容...
| Import Statement: | import Qt.labs.StyleKit |
| Inherits: | |
| Status: | Technology preview |
此类型处于技术预览阶段,可能会发生变更。
属性
详细说明
HandleStyle 继承自 `DelegateStyle `,并增加了用于设置手柄样式的特定属性。
某些控件具有多个手柄。例如,RangeSlider 同时具有first 和second 两个手柄。可以通过first 和second 子手柄(slider.handle.first 和slider.handle.second )对它们进行独立样式设置。未在子手柄上设置的属性将回退到手柄本身。
注意: Qt.labs 模块中的类型在未来版本中不保证保持兼容性。
另请参阅 DelegateStyle 、ControlStyle 、ControlStateStyle 以及《FallbackStyle 参考》。
属性文档
first : DelegateStyle
用于设置样式(例如RangeSlider )第一个控件的分组属性。未设置的属性将回退到HandleStyle 本身。
second : DelegateStyle
用于设置样式(例如RangeSlider )的第二个控件的分组属性。未设置的属性将回退到HandleStyle 本身。
© 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.