コード例 #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
ファイル: view.py プロジェクト: RachitKansal/orange3
 def mousePressEvent(self, event):
     QGraphicsView.mousePressEvent(self, event)