PathPolyline QML Type
Definisce una polilinea tramite un elenco di coordinate. Altro...
| Import Statement: | import QtQuick |
| Since: | QtQuick 2.14 |
Proprietà
Descrizione dettagliata
L'esempio riportato di seguito crea un percorso triangolare costituito da quattro vertici situati sul bordo del riquadro di delimitazione della forma contenente. Grazie alla proprietà scale della forma contenente, il percorso verrà ridimensionato insieme alla forma contenente.
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)
]
}Vedi anche Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg e PathMove.
Documentazione sulla proprietà
path : list<point>
Questa proprietà definisce i vertici della polilinea.
Può essere un array JS di punti creato con ` Qt.point()`, un ` QList ` o ` QVector ` di tipo ` QPointF`, oppure ` QPolygonF`. Se si sta associando questa proprietà a una proprietà personalizzata in un oggetto C++, ` QPolygonF ` è il tipo più appropriato da utilizzare.
start : point [read-only]
Questa proprietà di sola lettura contiene l'inizio della polilinea.
© 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.