Auf dieser Seite

PathLine QML Type

Definiert eine Gerade. Mehr...

Import Statement: import QtQuick

Eigenschaften

Ausführliche Beschreibung

Das folgende Beispiel erstellt einen Pfad, der aus einer geraden Linie von 0,100 bis 200,100 besteht:

Path {
    startX: 0; startY: 100
    PathLine { x: 200; y: 100 }
}

Siehe auch Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg, PathMove, PathPolyline und PathRectangle.

Dokumentation zu Eigenschaften

relativeX : real

relativeY : real

Legt den Endpunkt der Linie relativ zu ihrem Startpunkt fest.

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

Definiert den Endpunkt der Linie.

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.