Qt Labs StyleKit QML Types
该模块处于技术预览阶段,内容可能会有变动。
Qt Labs StyleKit模块提供了用于声明式样式设置的 Qml 类型 Qt Quick Controls。StyleKit 允许您通过单个 Style 对象为所有控件定义完整的视觉样式,包括对主题、基于状态的样式设置以及过渡效果的支持。
您可以在 .qml 文件中使用以下导入语句,将这些 QML 类型导入到您的应用程序中:
import Qt.labs.StyleKitQML 类型
一个抽象基类,包含 Style 和 Theme 共有的属性 | |
定义委托控件的边框样式 | |
描述控件在特定状态下的样式 | |
定义控件在正常状态下的样式 | |
定义控件的可样式化属性 | |
定义自定义(非内置)控件的样式 | |
定义一个命名的自定义主题 | |
定义控件内某个元素的视觉外观 | |
定义 Switch、Slider 和 RangeSlider 等控件的控点样式 | |
定义委托的图像样式 | |
定义控件指示器的样式 | |
定义委托的投影样式 | |
包含可设置样式的控件类型的抽象基类 | |
样式定义的根类型 | |
用于对样式属性进行动画处理的便捷类型 | |
用于设置和访问当前样式的单例 | |
追踪控件样式属性的解析过程 | |
从特定控件的当前样式中读取属性 | |
为特定控件定义替代样式 | |
渲染 DelegateStyle | |
定义子指示器委托的样式 | |
定义控件标签的文本样式 | |
为配色方案定义颜色和样式覆盖规则 |
注意: Qt.labs 模块中的类型在未来版本中不保证保持兼容性。
相关信息
© 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.