ShapeGradient QML Type▲
-
Import Statement: import QtQuick.Shapes 1.4
-
Since:: Qt 5.10
-
Inherited By:: ConicalGradient, LinearGradient, and RadialGradient
-
Inherits:: Gradient
-
Group: ShapeGradient is part of qtquick-paths, qtquick-views
Detailed Description▲
This is an abstract base class for gradients like LinearGradient and cannot be created directly. It extends Gradient with properties like the spread mode.
Property Documentation▲
spread : enumeration▲
Specifies how the area outside the gradient area should be filled. The default value is ShapeGradient.PadSpread.
Constant |
Description |
---|---|
ShapeGradient.PadSpread |
The area is filled with the closest stop color. |
ShapeGradient.RepeatSpread |
The gradient is repeated outside the gradient area. |
ShapeGradient.ReflectSpread |
The gradient is reflected outside the gradient area. |