本页内容

ShapeGradient QML Type

“形状填充渐变”的基础类型。更多内容...

Import Statement: import QtQuick.Shapes 1.12
Inherits:

Gradient

Inherited By:

ConicalGradient, LinearGradient, and RadialGradient

属性

详细说明

这是一个用于渐变(如LinearGradient )的抽象基类,无法直接创建。它继承自Gradient ,并具有诸如扩散模式等属性。

属性文档

spread : enumeration

指定渐变区域外的区域应如何填充。默认值为ShapeGradient.PadSpread 。

常量说明
ShapeGradient.PadSpread该区域将填充为最接近的色阶颜色。
ShapeGradient.RepeatSpread渐变在渐变区域之外重复。
ShapeGradient.ReflectSpread在渐变区域之外,渐变将被镜像。

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