ShapeGradient QML Type

Base type of Shape fill gradients. 更多...

import 語句: import QtQuick.Shapes 1.12
Since: Qt 5.10
繼承: 漸變
繼承者: ConicalGradient , LinearGradient ,和 RadialGradient

特性

詳細描述

This is an abstract base class for gradients like LinearGradient and cannot be created directly. It extends 漸變 with properties like the spread mode.

特性文檔編製

spread : enumeration

Specifies how the area outside the gradient area should be filled. The default value is ShapeGradient.PadSpread .

常量 描述
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.