CSPolygon QML Type

Display a polygon shape. More...

Import Statement: import CSDataQuick.Components 1.0
Inherits:

CSGraphics

Properties

Detailed Description

Draws the polygon defined by the points array. The first point is implicitly connected to the last point.

Row {
    spacing: 5
    CSPolygon {
        width: 100
        height: 100
        points: [
            Qt.point(10.0, 80.0), Qt.point(20.0, 10.0),
            Qt.point(80.0, 30.0),Qt.point(90.0, 70.0)
        ]
    }
    CSPolygon {
        width: 100
        height:100
        points: [
            Qt.point(10.0, 80.0),Qt.point(20.0, 10.0),
            Qt.point(80.0, 30.0),Qt.point(90.0, 70.0)
        ]
        fill: FillStyle.Outline
        edge: EdgeStyle.Dash
    }
}

Property Documentation

points : list<point>

This property holds the trace of the polygon as a list of points.