Defines a polyline through a list of coordinates. More...
| Import Statement: | import QtQuick
|
| Since: | QtQuick 2.14 |
The example below creates a triangular path consisting of four vertices on the edge of the containing Shape's bounding box. Through the containing shape's scale property, the path will be rescaled together with its containing shape.
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)
]
}See also Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg, and PathMove.
start : point [read-only]
This read-only property contains the beginning of the polyline.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qml-qtquick-pathpolyline.html