Enable mouse tracking for the view's viewport.
Hi,
this problem was discussed couple of times before in the forum. For example the following,
http://www.qtcentre.org/forum/f-qt-p...mouseMoveEvent
but I still got the same problem with it. So good luck![]()
i have already used setMouseTracking() for view. but still its not working. In Qt Asistant i have checked description of setAcceptHoverEvents(). i.e.
Hover events are commonly used to highlight an item when it's entered, and for tracking the mouse cursor as it hovers over the item (equivalent to QWidget::mouseTracking).
But setAcceptHoverEvents() doesn't act exactly as setMouseTracking()
But why do you expect a hover event to trigger a mouse move event? It will trigger hoverMoveEvent()...
navi1084 (6th July 2009)
you are absolutely correct wysota. thank you very much. then i have misunderstood the QGraphicsItem mouseMoveEvent() with QWidget mouseMoveEvent(). Because mouseMoveEvent() itself will be trigger when user hover the mouse on widget.
My problem is solved. Thank you very much.
Bookmarks