"swipe" navigation through ChartView
Unsolved
QML and Qt Quick
-
Hi
I think I haven't explained it properly.
I've got two buttons "back" and "continue" to change the date of data shown in the chart.
For better usability I also want to swipe left or right on the Chart to change the Date.
I don't think the ScrollView is the right Widget.This is part of my code:
Rectangle { id: rectangle anchors.fill: parent color: "black" GridLayout { id: gridLayout anchors.fill: parent columns: 3 Button { id: butBack icon.source: "images/back.png" } Button { id: butDate text: qsTr("Date") Layout.fillWidth: true transformOrigin: Item.Center } Button { id: butContinue display: AbstractButton.IconOnly icon.source: "media/Continue.png" } ChartView { id: chartView Layout.columnSpan: 3 Layout.fillHeight: true Layout.fillWidth: true antialiasing: true theme: ChartView.ChartThemeDark } } }