aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/painterpathquickshape/SmallPolygon.qml
blob: f29896035886b2e9203dfa789169a0aec0c39eea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import QtQuick.Shapes

ControlledShape {
    delegate: [
        PathPolyline {
            path: [ point1.pt,
                    point2.pt,
                    point3.pt,
                    point4.pt,
                    point5.pt,
                    point1.pt
                  ]

        }
    ]

    ControlPoint {
        id: point1
        cx: 400
        cy: 900
    }
    ControlPoint {
        id: point2
        cx: 1500
        cy: 600
    }
    ControlPoint {
        id: point3
        cx: 2500
        cy: 1100
    }
    ControlPoint {
        id: point4
        cx: 3000
        cy: 1100
    }
    ControlPoint {
        id: point5
        cx: 2000
        cy: 1900
    }

}