本页内容

ImageStyle QML Type

定义委托的图像样式。更多...

Import Statement: import Qt.labs.StyleKit
Status: Technology preview

此类型处于技术预览阶段,可能会有变动。

属性

详细说明

ImageStyle 提供了用于将图像放置在DelegateStyle 中的属性。该属性作为image 组属性,可在任何委托上使用。

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

另请参阅 DelegateStyle 、ControlStyle 、ControlStateStyle 以及FallbackStyle 参考文档。

属性文档

color : color

应用于图像的颜色叠加层。这通常用于为单色图标添加色调,使其与样式配色方案相匹配。

fillMode : enumeration

图像在委托中应如何缩放或平铺。该值应为Image.fillMode 枚举中的一个值。

source : url

要在委托对象内部显示的图片的 URL。

© 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.