def dragLeaveEvent(self, event): self.fWasLastDragValid = False QGraphicsView.dragLeaveEvent(self, event)