This feature is provided by QChartView.
QChartView v;
v.setRubberBand(QChartView::HorizontalRubberBand);
There is also a zoom function associated with your mouse. However, I don’t remember which button. Otherwise, use the scaling functions in QChart.
source
share