Nesta página

PathLine QML Type

Define uma reta. Mais...

Import Statement: import QtQuick

Propriedades

Descrição detalhada

O exemplo abaixo cria um caminho que consiste em uma linha reta de 0,100 a 200,100:

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

Veja também Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg, PathMove, PathPolyline e PathRectangle.

Documentação de propriedades

relativeX : real

relativeY : real

Define o ponto final da linha 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 valor x relativo e um valor y absoluto.

Veja também x e y.

x : real

y : real

Define o ponto final da linha.

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.