I have a QGraphicsView subclass. When the mouse is dragged over it and then leaves it, the QDragLeaveEvent triggers a timeline to animate hiding the QGV. The problem is that in another area in my program, I want to make sure that if the animation is running it finishes, so I put a

Qt Code:
  1. while( fadeTimer.state() == QTimeLine::Running )
  2. QApplication::processEvents
To copy to clipboard, switch view to plain text mode 

What's happening is that this is causing multiple QDragLeaveEvents to get sent to my QGV, resulting in an eventual crash. Why am I getting these multiple events and how do I avoid it?

Thanks.