PathPolyline QML Type
Definiert eine Polylinie anhand einer Liste von Koordinaten. Mehr...
| Import Statement: | import QtQuick |
| Since: | QtQuick 2.14 |
Eigenschaften
Ausführliche Beschreibung
Das folgende Beispiel erstellt einen dreieckigen Pfad, der aus vier Eckpunkten am Rand des Begrenzungsrahmens der umgebenden Form besteht. Über die Eigenschaft „ scale “ der umgebenden Form wird der Pfad zusammen mit der umgebenden Form skaliert.
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)
]
}Siehe auch „ Path“ , „ PathQuad “, „ PathCubic “, „ PathArc “, „ PathAngleArc “, „ PathCurve “, „ PathSvg “ und „ PathMove “.
Dokumentation zu Eigenschaften
path : list<point>
Diese Eigenschaft definiert die Eckpunkte der Polylinie.
Es kann sich um ein JS-Array von Punkten handeln, das mit ` Qt.point()` erstellt wurde, um ein ` QList ` oder ` QVector ` vom Typ ` QPointF` oder um ` QPolygonF`. Wenn Sie diese Eigenschaft an eine benutzerdefinierte Eigenschaft in einem C++-Objekt binden, ist ` QPolygonF ` der am besten geeignete Typ.
start : point [read-only]
Diese schreibgeschützte Eigenschaft enthält den Anfangspunkt der Polylinie.
© 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.