En esta página

PathLine QML Type

Define una línea recta. Más...

Import Statement: import QtQuick

Propiedades

Descripción detallada

El siguiente ejemplo crea una trayectoria consistente en una línea recta de 0,100 a 200,100:

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

Véase también Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg, PathMove, PathPolyline, y PathRectangle.

Documentación de propiedades

relativeX : real

relativeY : real

Define el punto final de la línea en relación con su inicio.

Si se especifica tanto una posición final relativa como absoluta para un mismo eje, se utilizará la posición relativa.

Las posiciones relativas y absolutas pueden mezclarse, por ejemplo es válido establecer una x relativa y una y absoluta.

Véase también x y y.

x : real

y : real

Define el punto final de la línea.

Véase también relativeX y 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.