En esta página

PathPolyline QML Type

Define una polilínea a partir de una lista de coordenadas. Más...

Import Statement: import QtQuick
Since: QtQuick 2.14

Propiedades

Descripción detallada

El ejemplo siguiente crea una ruta triangular formada por cuatro vértices situados en el borde del rectángulo delimitador de la forma contenedora. Mediante la propiedad « scale » de la forma contenedora, la ruta se redimensionará junto con la forma contenedora.

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)
          ]
}

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

Documentación de la propiedad

path : list<point>

Esta propiedad define los vértices de la polilínea.

Puede ser una matriz JS de puntos creada con ` Qt.point()`, un ` QList ` o ` QVector ` de ` QPointF`, o ` QPolygonF`. Si vas a vincular esto a una propiedad personalizada en algún objeto C++, ` QPolygonF ` es el tipo más adecuado que puedes utilizar.

start : point [read-only]

Esta propiedad de solo lectura contiene el punto inicial de la polilínea.

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