ShapeGradient QML Type

Base type of Shape fill gradients. More...

Import Statement: import QtQuick.Shapes 1.7
Inherits:

Gradient

Inherited By:

ConicalGradient, LinearGradient, and RadialGradient

Properties

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.

ConstantDescription
ShapeGradient.PadSpreadThe area is filled with the closest stop color.
ShapeGradient.RepeatSpreadThe gradient is repeated outside the gradient area.
ShapeGradient.ReflectSpreadThe gradient is reflected outside the gradient area.