Ejemplo n.º 1
0
 def mousePressEvent(self, event):
     QHeaderView.mousePressEvent(self, event)
     if event.button() == Qt.RightButton:
         self.emit(SIGNAL("mouseRightPressed"), event.globalPos())
Ejemplo n.º 2
0
 def mousePressEvent(self, event):
     if event.buttons() & Qt.RightButton:
         self.emit(SIGNAL("right_clicked"), event)
         return
     QHeaderView.mousePressEvent(self, event)
Ejemplo n.º 3
0
 def mousePressEvent(self,event):
     QHeaderView.mousePressEvent(self,event)
     if event.button()==Qt.RightButton:
         self.emit(SIGNAL("mouseRightPressed"), event.globalPos())