def mouseReleaseEvent(self, mouse_event): super(CompositionView, self).mouseReleaseEvent(mouse_event) self.setDragMode(QtGui.QGraphicsView.NoDrag)