在本页

HandleStyle QML Type

定义Switch,SliderRangeSlider 等控件的句柄样式。更多

Import Statement: import Qt.labs.StyleKit
Inherits:

DelegateStyle

属性

详细说明

HandleStyle 扩展了DelegateStyle ,其属性专门用于样式化手柄。

有些控件有多个句柄。例如,RangeSlider 有一个first 和一个second 句柄。可以使用firstsecond 子句柄、slider.handle.firstslider.handle.second 对这两个句柄进行独立样式设置。子句柄上未设置的属性会返回到句柄本身。

注意: Qt.labs 模块中的类型不保证在未来版本中保持兼容。

另请参阅 DelegateStyle,ControlStyle,ControlStateStyleFallbackStyle Reference

属性文档

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.