Exemplo n.º 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)
Exemplo n.º 2
0
 def mousePressEvent(self, event):
     QGraphicsView.mousePressEvent(self, event)
Exemplo n.º 3
0
 def mousePressEvent(self, event):
     QGraphicsView.mousePressEvent(self, event)