I was able to find a way to zoom centred on the mouse.  What I did was
make use of the QChart::plotArea() function.  With that function by
using ChartView::wheelEvent(), I could get where in the chart the zoom
is happening.  I then did some math and set the new zoom for the chart
by adjusting the range for the chart's x and y axis.

Fortunately I could do this with the existing API.  It would be nice if
there was a cleaner API for doing this though.

-- 
Lorne Sturtevant
Sum Ergo Cogito

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to