[commonqt-devel] Zoom in/out QGraphicsView centering on mouse position
Stas Boukarev
stassats at gmail.com
Wed Sep 18 01:18:21 UTC 2013
Rujia Liu <rujia.liu at gmail.com> writes:
> 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?
That got to be a qt problem, unless something specific doesn't
work. You'll need to paste the code to diagnose it further.
--
With best regards, Stas.
More information about the commonqt-devel
mailing list