예제 #1
0
 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)
예제 #2
0
 def mousePressEvent(self, event):
     QGraphicsView.mousePressEvent(self, event)
예제 #3
0
 def mousePressEvent(self, event):
     QGraphicsView.mousePressEvent(self, event)