LinearGradient QML Type

Linear gradient. More...

Import Statement: import QtQuick.Shapes 1.14
Since: Qt 5.10
Inherits:

ShapeGradient

Properties

  • x1 : real
  • x2 : real
  • y1 : real
  • y2 : real

Detailed Description

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.

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

See also QLinearGradient.

Property Documentation

x1 : real

y1 : real

x2 : real

y2 : real

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


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