In questa pagina

PathLine QML Type

Definisce una linea retta. Altro...

Import Statement: import QtQuick

Proprietà

Descrizione dettagliata

L'esempio riportato di seguito crea un percorso costituito da una linea retta che va da 0,100 a 200,100:

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

Vedi anche Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg, PathMove, PathPolyline e PathRectangle.

Documentazione sulla proprietà

relativeX : real

relativeY : real

Definisce il punto finale della linea rispetto al suo punto iniziale.

Se per un singolo asse vengono specificate sia una posizione finale relativa che una assoluta, verrà utilizzata la posizione relativa.

È possibile combinare posizioni relative e assolute; ad esempio, è valido impostare una x relativa e una y assoluta.

Vedi anche x e y.

x : real

y : real

Definisce il punto finale della linea.

Vedi anche relativeX e 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.