在本页

ImageStyle QML Type

定义代表的图像样式。更多

Import Statement: import Qt.labs.StyleKit

属性

详细说明

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.