def mousePressEvent(self, event): self._start_pos = event.pos() if event.button() == Qt.LeftButton: # Save the current selection and restore it on mouse{Move,Release} if not event.modifiers() & Qt.ShiftModifier: self._selection = [] QGraphicsView.mousePressEvent(self, event)
def mousePressEvent(self, event): QGraphicsView.mousePressEvent(self, event)
def mousePressEvent(self, event): QGraphicsView.mousePressEvent(self, event)