Revision control
Copy as Markdown
// 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
}
}
}