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 ruta que consiste en una línea recta desde 0,100 hasta 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 la propiedad

relativeX : real

relativeY : real

Define el punto final de la línea con respecto a su punto inicial.

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

Se pueden combinar posiciones relativas y absolutas; por ejemplo, es válido establecer un valor relativo para el eje x y uno absoluto para el eje y.

Véase también x y y.

x : real

y : real

Define el extremo 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.