Nesta página

PathPolyline QML Type

Define uma polilinha por meio de uma lista de coordenadas. Mais...

Import Statement: import QtQuick
Since: QtQuick 2.14

Propriedades

Descrição detalhada

O exemplo abaixo cria um caminho triangular composto por quatro vértices na borda da caixa delimitadora da forma contida. Por meio da propriedade ` scale ` da forma contida, o caminho será redimensionado juntamente com a forma contida.

PathPolyline {
    id: ppl
    path: [ Qt.point(0.0, 0.0),
            Qt.point(1.0, 0.0),
            Qt.point(0.5, 1.0),
            Qt.point(0.0, 0.0)
          ]
}

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

Documentação de propriedades

path : list<point>

Essa propriedade define os vértices da polilinha.

Pode ser um array JS de pontos construído com ` Qt.point()`, um ` QList ` ou ` QVector ` de ` QPointF`, ou ` QPolygonF`. Se você estiver vinculando isso a uma propriedade personalizada em algum objeto C++, ` QPolygonF ` é o tipo mais adequado a ser usado.

start : point [read-only]

Essa propriedade somente leitura contém o início da polilinha.

© 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.