[Qt-interest] QGraphicsView::mouseMoveEvent not called after view tranform change (Qt-4.5.2)

r nbs.public at gmail.com
Thu Feb 4 07:19:03 CET 2010


I'm reimplementing QGraphicsView::mouseMoveEvent to detect mouse hover
on certain items. This works fine unless I change the view transform
(e.g. move or rescale the view with a keyboard action). Since this
doesn't trigger the execution of the mouseMoveEvent method my visual
hover indicators are no longer in sync with the actual mouse cursor
position. Tested with Qt-4.5.2.

Would it be possible to emit such an event in future versions of Qt?
What would be the best work-around for Qt-4.5/4.6? I imagine I can
simply manually emit such an event from the code changing view
transform.

Cheers,
-r.



More information about the Qt-interest-old mailing list