self.popMenu.addAction(QtGui.QAction('test0', self))
self.popMenu.addAction(QtGui.QAction('test1', self))
self.popMenu.addSeparator()
self.popMenu.addAction(QtGui.QAction('test2', self))

def on_context_menu(self, point):
    self.popMenu.exec_(self.button.mapToGlobal(point))

def main():
    app = QtGui.QApplication(sys.argv)
form = MainForm()
form.show()
app.exec_()
if __name__ == '__main__':
    main()
Right click contextMenu on QPushButton