Пример #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
 def mousePressEvent(self,event):
     QHeaderView.mousePressEvent(self,event)
     if event.button()==Qt.RightButton:
         self.emit(SIGNAL("mouseRightPressed"), event.globalPos())