Hi,

I'm trying to add a right-click menu on a pushButton, but the menu doesn't show up??
Anyone to help?

Qt Code:
  1. def addChannelsMenu(self):
  2. chmenu = QtGui.QMenu()
  3. chmenu.addAction('testing')
  4. chmenu.addAction('testing1')
  5. chmenu.addSeparator()
  6. chmenu.addAction('testing2')
  7. #self.channelsBtn.setMenu(chmenu)
  8.  
  9. #self.channelsBtn.showMenu()
  10. self.zoomBtn.setMenu(chmenu)
To copy to clipboard, switch view to plain text mode 


I tried repainting but it wouldn't help either:
Qt Code:
  1. self.zoomBtn.repaint()
To copy to clipboard, switch view to plain text mode 

I'm on Fedora8 at the moment.