En esta página

PathMove QML Type

Cambia la posición de la ruta. Más...

Import Statement: import QtQuick

Propiedades

Descripción detallada

El siguiente ejemplo crea una ruta formada por dos líneas horizontales con un espacio vacío entre ellas. Los tres segmentos tienen un ancho de 100:

Path {
    startX: 0; startY: 100
    PathLine { relativeX: 100; y: 100 }
    PathMove { relativeX: 100; y: 100 }
    PathLine { relativeX: 100; y: 100 }
}

Nota: No se debe utilizarPathMove en una ruta asociada a un « PathView ». Utiliza en su lugar « PathLine ». Sin embargo, en el caso de « ShapePath », es importante distinguir entre las operaciones de dibujar una línea recta y mover la posición de la ruta sin dibujar nada.

Véase también Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg y PathLine.

Documentación de la propiedad

relativeX : real

relativeY : real

Define la posición a la que se debe desplazar en relación con su punto de partida.

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 una posición x relativa y una y absoluta.

Véase también x y y.

x : real

y : real

Define la posición a la que hay que desplazarse.

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.