Auf dieser Seite

PathCubic QML Type

Definiert eine kubische Bézier-Kurve mit zwei Kontrollpunkten. Mehr...

Import Statement: import QtQuick

Eigenschaften

Ausführliche Beschreibung

Der folgende QML-Code erzeugt den unten gezeigten Pfad:

Kubische Kurve

Path {
    startX: 20; startY: 0
    PathCubic {
        x: 180; y: 0
        control1X: -10; control1Y: 90
        control2X: 210; control2Y: 90
    }
}

Siehe auch Path, PathQuad, PathLine, PathArc, PathAngleArc, PathCurve, PathSvg und PathRectangle.

Dokumentation zu Eigenschaften

control1X : real

control1Y : real

Legt die Position des ersten Kontrollpunkts fest.

control2X : real

control2Y : real

Legt die Position des zweiten Kontrollpunkts fest.

relativeControl1X : real

relativeControl1Y : real

relativeControl2X : real

relativeControl2Y : real

Legt die Positionen der Kontrollpunkte relativ zum Anfangspunkt der Kurve fest.

Wenn für die Achse eines Kontrollpunkts sowohl eine relative als auch eine absolute Kontrollposition angegeben wird, wird die relative Position verwendet.

Relative und absolute Positionen können gemischt werden; so ist es beispielsweise zulässig, eine relative x-Position und eine absolute y-Position für „control1“ festzulegen.

Siehe auch control1X, control1Y, control2X und control2Y.

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 werden, wird die relative Position verwendet.

Relative und absolute Positionen können gemischt 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.