[commonqt-devel] Zoom in/out QGraphicsView centering on mouse position

Rujia Liu rujia.liu at gmail.com
Tue Sep 17 05:06:38 UTC 2013


Hi!

I want to implement a AutoCAD-like zoom in/out behavior and found this:

http://www.qtcentre.org/threads/35738-How-to-zooming-like-in-AutoCAD-with-QGraphicsView

I tried to use scale+centerOn (also in wheel event) but it doesn't work. It
is scaled properly but does NOT center on the given point. Is there any
workaround?

- Rujia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/commonqt-devel/attachments/20130917/a5f3ce3e/attachment.html>


More information about the commonqt-devel mailing list