LinearGradient QML Type

Linear gradient. 更多...

导入语句: import QtQuick.Shapes 1.12
Since: Qt 5.10
继承:

ShapeGradient

特性

详细描述

Linear gradients interpolate colors between start and end points in Shape items. Outside these points the gradient is either padded, reflected or repeated depending on the spread type.

注意: LinearGradient is only supported in combination with Shape items. It is not compatible with Rectangle , as that only supports Gradient .

另请参阅 QLinearGradient .

特性文档编制

x1 : real

These properties define the start and end points between which color interpolation occurs. By default both points are set to (0, 0).


x2 : real

These properties define the start and end points between which color interpolation occurs. By default both points are set to (0, 0).


y1 : real

These properties define the start and end points between which color interpolation occurs. By default both points are set to (0, 0).


y2 : real

These properties define the start and end points between which color interpolation occurs. By default both points are set to (0, 0).