<div dir="ltr"><div>Ok! I'll look into it soon and will paste some code if I still haven't get it right.<br><br></div>BTW: is it possible to add a mouse event handler without subclassing and override the event handler? sometimes it'll be cleaner.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 18, 2013 at 9:18 AM, Stas Boukarev <span dir="ltr"><<a href="mailto:stassats@gmail.com" target="_blank">stassats@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Rujia Liu <<a href="mailto:rujia.liu@gmail.com">rujia.liu@gmail.com</a>> writes:<br>
<br>
> Hi!<br>
><br>
> I want to implement a AutoCAD-like zoom in/out behavior and found this:<br>
><br>
> <a href="http://www.qtcentre.org/threads/35738-How-to-zooming-like-in-AutoCAD-with-QGraphicsView" target="_blank">http://www.qtcentre.org/threads/35738-How-to-zooming-like-in-AutoCAD-with-QGraphicsView</a><br>
><br>
> I tried to use scale+centerOn (also in wheel event) but it doesn't work. It<br>
> is scaled properly but does NOT center on the given point. Is there any<br>
> workaround?<br>
</div></div>That got to be a qt problem, unless something specific doesn't<br>
work. You'll need to paste the code to diagnose it further.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
With best regards, Stas.<br>
</font></span></blockquote></div><br></div>