ColorGradient QML Type
Defines a color gradient. More...
|Import Statement:||import QtDataVisualization 1.15|
- stops : list<ColorGradientStop>
A gradient is defined by two or more colors, which will be blended seamlessly.
The colors are specified as a set of ColorGradientStop child items, each of which defines a position on the gradient from 0.0 to 1.0 and a color. The position of each ColorGradientStop is defined by setting its position property; its color is defined using its color property.
A gradient without any gradient stops falls back to QLinearGradient default, which is black at 0.0 and white at 1.0.
See also ColorGradientStop.
This property holds the gradient stops describing the gradient.
By default, this property contains an empty list.
To set the gradient stops, define them as children of the ColorGradient.
© 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.