ChartView and scrollbar
Unsolved
QML and Qt Quick
-
Have you tried to put it into Flickable {} ?
-
Thanks for clue, but seems like
ChartView
has fixed size.
I addedMouseArea
to handle it - it works like draggingChartView { id: chartView MouseArea { anchors.fill: parent property int lastX: 0 property int lastY: 0 onPressed: { lastX = mouse.x lastY = mouse.y } onPositionChanged: { if (lastX !== mouse.x) { chartView.scrollRight(lastX - mouse.x) lastX = mouse.x } if (lastY !== mouse.y) { chartView.scrollDown(lastY - mouse.y) lastY = mouse.y } } } }