コード例 #1
0
 def mousePressEvent(self, event):
     QHeaderView.mousePressEvent(self, event)
     if event.button() == Qt.RightButton:
         self.emit(SIGNAL("mouseRightPressed"), event.globalPos())
コード例 #2
0
ファイル: table_view.py プロジェクト: maximerobin/Ufwi
 def mousePressEvent(self, event):
     if event.buttons() & Qt.RightButton:
         self.emit(SIGNAL("right_clicked"), event)
         return
     QHeaderView.mousePressEvent(self, event)
コード例 #3
0
ファイル: Header.py プロジェクト: Andrej-CMS/cmssw
 def mousePressEvent(self,event):
     QHeaderView.mousePressEvent(self,event)
     if event.button()==Qt.RightButton:
         self.emit(SIGNAL("mouseRightPressed"), event.globalPos())