En esta página

LinearGradient QML Type

Gradiente lineal. Más...

Import Statement: import QtQuick.Shapes 1.12
Inherits:

ShapeGradient

Propiedades

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

Descripción detallada

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

Nota: «LinearGradient » solo es compatible en combinación con elementos «Shape». No es compatible con « Rectangle », ya que este solo admite « Gradient ».

Véase también ` QLinearGradient`.

Documentación de la propiedad

x1 : real

x2 : real

y1 : real

y2 : real

Estas propiedades definen los puntos inicial y final entre los que se produce la interpolación de colores. Por defecto, ambos puntos están establecidos 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.