Nesta página

PathMove QML Type

Altera a posição do caminho. Mais...

Import Statement: import QtQuick

Propriedades

Descrição detalhada

O exemplo abaixo cria um caminho composto por duas linhas horizontais com algum espaço vazio entre elas. Todos os três segmentos têm largura de 100:

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

Observação: o método `PathMove` não deve ser usado em um caminho (Path) associado a um objeto ` PathView`. Use ` PathLine ` em vez disso. Para ` ShapePath `, no entanto, é importante distinguir entre as operações de desenhar uma linha reta e mover a posição do caminho sem desenhar nada.

Veja também Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg e PathLine.

Documentação de propriedades

relativeX : real

relativeY : real

Define a posição para a qual se deve deslocar em relação ao seu ponto inicial.

Se forem especificadas tanto uma posição final relativa quanto uma absoluta para um único eixo, será utilizada a posição relativa.

É possível misturar posições relativas e absolutas; por exemplo, é válido definir um eixo x relativo e um eixo y absoluto.

Veja também x e y.

x : real

y : real

Define a posição para a qual se deve deslocar.

Veja também 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.