PDA

View Full Version : Drop Event Gets Disabled on adding MouseMoveEvent



SiddhantR
5th February 2014, 07:00
I have a QGraphicsScene. I have a video running on the scene. On top of video I add a zooming window which is a QGraphicsItem. I drag and drop this window using drag events of QGraphicsScene. This works fine. I have to show the scene co ordinates everytime the mouse moves. For this I use a QGraphicsTextItem in MouseMoveEvent of graphics scene. The problem is when I write the MouseMoveEvent the drag and drop events stop responding.


I am using mousemoveevent in QGraphicsItem to start the drag and the drop is implemented in dropEvent in QGraphicsScene. Is it because I try to implement mousemoveevent twice. If yes then what is the work around for this?

Thank You

anda_skoa
5th February 2014, 10:17
Do you take care of passing the event on to the base class implementation?

Cheers,
_