En esta página

PathPolyline QML Type

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

Import Statement: import QtQuick
Since: QtQuick 2.14

Propiedades

Descripción detallada

El siguiente ejemplo crea un trazado triangular formado por cuatro vértices en el borde de la caja delimitadora de la forma contenedora. A través de la propiedad scale de la forma contenedora, el trazado se reescalará junto con su 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 propiedades

path : list<point>

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

Puede ser una matriz JS de puntos construida con Qt.point(), un QList o QVector de QPointF, o QPolygonF. Si está vinculando esto a una propiedad personalizada en algún objeto C++, QPolygonF es el tipo más apropiado a utilizar.

start : point [read-only]

Esta propiedad de sólo lectura contiene el inicio 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.