c++ - How to enable zooming in QtCharts? -


i want able zoom in qtcharts using mouse.

the best way zoom using mouse drawing rectangles , adjusting view new smaller rectangle.

how can implement in qtcharts?

highcharts has similar example , looks quite nice:

enter image description here

this functionallity provided qchartview.

qchartview v; v.setrubberband(qchartview::horizontalrubberband); 

there zooming out functionality bound mouse. don't remember button though. otherwise use zooming functions in qchart.


Comments