import QtQuick 2.7
import QtQuick.Window 2.2
import QtQuick.Controls 2.0
Window {
visible: true
Shortcut {
sequence: "Ctrl+Q"
onActivated: Qt.quit()
}
PathView {
id: pathView
anchors.fill: parent
model: 10
delegate: Text {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
width: implicitWidth + 20
height: implicitHeight + 20
text: modelData
}
path: Path {
startX: 120; startY: 100
PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 }
PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 }
}
}
Button {
onClicked: pathView.path = null
}
}