IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

ColorGradient QML Type

Defines a color gradient.

This type was introduced in QtDataVisualization 1.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

ColorGradient QML Type

  • Import Statement: import QtDataVisualization 1.4

  • Since:: QtDataVisualization 1.0

  • Group: ColorGradient is part of datavisualization_qml

Detailed Description

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

Property Documentation

 

[default] stops : list<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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+