예제 #1
0
 def mousePressEvent(self, event):
     QHeaderView.mousePressEvent(self, event)
     if event.button() == Qt.RightButton:
         self.emit(SIGNAL("mouseRightPressed"), event.globalPos())
예제 #2
0
 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())