PathLine QML Type

Definiert eine gerade Linie. Mehr...

Import Statement: import QtQuick

Eigenschaften

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

Eigenschaft Dokumentation

x : real

y : real

Definiert den Endpunkt der Linie.

Siehe auch relativeX und relativeY.


relativeX : real

relativeY : real

Definiert den Endpunkt der Linie relativ zu ihrem Anfang.

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, z. B. ist es zulässig, ein relatives x und ein absolutes y festzulegen.

Siehe auch x und y.


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