Unsolved QChart Zoom Levels
-
Hello,
I am trying to make zooming with a QChart a little bit more convenient for the user.
If the user hast zoomed multiple times into the chart, he should be able to go back each zooming step/level he made when clicking the right mousebutton.I tried to implement it myself, but i haven't found a way to solve this.
What i'm imagining is something like this: -
Have you take a look at this example : http://doc.qt.io/qt-5/qtcharts-zoomlinechart-example.html ?
You can exand it with the use of a QStack (http://doc.qt.io/qt-5/qstack.html), to store the different zoom level.
And add RightClick event handler to use the zoom on the top of your stack.
-
Yes i looked at that example.
The zooming and storing is not the problem.
But i wonder what values i should store and how i should deal with multiple different Axis types like QValueAxis and QDateAxis.