PathPolyline QML Type

Defines a polyline through a list of coordinates. 更多...

import 语句: 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)
          ]
}
					

另请参阅 路径 , PathQuad , PathCubic , PathArc , PathAngleArc , PathCurve , PathSvg , PathMove ,和 PathPolyline .

特性文档编制

path : list < point >

This property defines the vertices of the polyline.

It can be a JS array of points constructed with Qt.point() QList or QVector of QPointF ,或 QPolygonF . If you are binding this to a custom property in some C++ object, QPolygonF is the most appropriate type to use.


[read-only] start : point

This read-only property contains the beginning of the polyline.