Auf dieser Seite

PathQuad QML Type

Definiert eine quadratische Bézier-Kurve mit einem Kontrollpunkt. Mehr...

Import Statement: import QtQuick

Eigenschaften

Ausführliche Beschreibung

Der folgende QML-Code erzeugt den unten gezeigten Pfad:

Quadratische Bézier-Kurve, die eine Parabel bildet

Path {
    startX: 0; startY: 0
    PathQuad { x: 200; y: 0; controlX: 100; controlY: 150 }
}

Siehe auch Path, PathCubic, PathLine, PathArc, PathAngleArc, PathCurve und PathSvg.

Dokumentation zu Eigenschaften

controlX : real

controlY : real

Legt die Position des Kontrollpunkts fest.

relativeControlX : real

relativeControlY : real

Legt die Position des Kontrollpunkts relativ zum Anfangspunkt der Kurve fest.

Wenn für eine einzelne Achse sowohl eine relative als auch eine absolute Steuerposition angegeben wird, wird die relative Position verwendet.

Relative und absolute Positionen können kombiniert werden; so ist es beispielsweise zulässig, eine relative Steuerposition für die x-Achse und eine absolute Steuerposition für die y-Achse festzulegen.

Siehe auch controlX und controlY.

relativeX : real

relativeY : real

Definiert den Endpunkt der Kurve relativ zu ihrem Startpunkt.

Wenn für eine einzelne Achse sowohl eine relative als auch eine absolute Endposition angegeben wird, wird die relative Position verwendet.

Relative und absolute Positionen können kombiniert werden; so ist es beispielsweise zulässig, eine relative x- und eine absolute y-Position festzulegen.

Siehe auch x und y.

x : real

y : real

Legt den Endpunkt der Kurve fest.

Siehe auch relativeX und relativeY.

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