aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickshape/data/polyline.qml
blob: 9c81bf40319e4babd25c29f6cc52661d79d03ce5 (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
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick 2.14
import QtQuick.Shapes 1.14

Shape {
    width: 200
    height: 150
    vendorExtensionsEnabled: false
    objectName: "shape"
    id: shape
    property alias path: polyline.path
    property point vertexBeingChecked;

    function checkVertexAt(i) {
        vertexBeingChecked = polyline.path[i]
    }

    ShapePath {
        strokeWidth: 4
        strokeColor: "green"
        PathPolyline {
            id: polyline
        }
    }
}