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

LinearGradient QML Type

Linear gradient.

This type was introduced in Qt 5.10.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

LinearGradient QML Type

  • Import Statement: import QtQuick.Shapes 1.4

  • Since:: Qt 5.10

  • Inherits:: ShapeGradient

  • Group: LinearGradient is part of qtquick-paths, qtquick-views

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.

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

See Also

See also QLinearGradient

Property Documentation

 

x1 : real

x2 : real

y1 : 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).

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