Auf dieser Seite

LinearGradient QML Type

Linearer Farbverlauf. Mehr...

Import Statement: import QtQuick.Shapes 1.12
Inherits:

ShapeGradient

Eigenschaften

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

Ausführliche Beschreibung

Lineare Farbverläufe interpolieren Farben zwischen Start- und Endpunkt in Shape-Elementen. Außerhalb dieser Punkte wird der Farbverlauf je nach Ausbreitungstyp entweder aufgefüllt, gespiegelt oder wiederholt.

Hinweis: „LinearGradient“ wird nur in Kombination mit „Shape“-Elementen unterstützt. Es ist nicht kompatibel mit „ Rectangle “, da dieses nur „ Gradient “ unterstützt.

Siehe auch „ QLinearGradient “.

Eigenschaftsdokumentation

x1 : real

x2 : real

y1 : real

y2 : real

Diese Eigenschaften legen den Start- und Endpunkt fest, zwischen denen die Farbinterpolation stattfindet. Standardmäßig sind beide Punkte auf (0, 0) gesetzt.

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