<div dir="ltr">Oh! How could I miss that :)<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 12, 2013 at 9:53 PM, 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 found a strange thing. QGraphicsScene's mousemove event would not be<br>
> triggered if the scene is empty. Actually if I only add a line item,<br>
> mousemove event will not be triggered either. Only after a text is added,<br>
> mousemove event is ok.<br>
><br>
> It's no big deal because I could add an empty text to get everything work,<br>
> but I'd like to know what's wrong (perhaps I've misunderstood something?)<br>
><br>
> I can send you relavent codes if you need, but they're too big to post here.<br>
</div></div>As I replied in a private email, for posterity here:<br>
<a href="http://qt-project.org/doc/qt-4.8/qwidget.html#mouseTracking-prop" target="_blank">http://qt-project.org/doc/qt-4.8/qwidget.html#mouseTracking-prop</a><br>
setMouseTracking need to be set on QGraphicsView.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
With best regards, Stas.<br>
</font></span></blockquote></div><br></div></div>