En esta página

LinearGradient QML Type

Gradiente lineal. Más...

Import Statement: import QtQuick.Shapes 1.11
Inherits:

ShapeGradient

Propiedades

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

Descripción detallada

Los degradados lineales interpolan colores entre los puntos inicial y final de los elementos Shape. Fuera de estos puntos el gradiente se rellena, refleja o repite dependiendo del tipo de extensión.

Nota: LinearGradient sólo es compatible en combinación con elementos Shape. No es compatible con Rectangle, que sólo admite Gradient.

Véase también QLinearGradient.

Documentación de propiedades

x1 : real

x2 : real

y1 : real

y2 : real

Estas propiedades definen los puntos inicial y final entre los que se produce la interpolación del color. Por defecto, ambos puntos se establecen en (0, 0).

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