self.taskMenu = QtGui.QMenu('Task')
self.tasks = self.getTasks()
self.menuTasks = QtGui.QMenu()
for item in self.tasks:
    menuItem_Task = self.taskMenu.addAction(item[1])
receiver = lambda taskType=item[0]: self.setTask(taskType)
self.connect(menuItem_Task, QtCore.SIGNAL('triggered()'), receiver)
self.taskMenu.addAction(menuItem_Task)

def setTask(self, taskType):
    print(taskType)
Pyqt - QMenu динамически заполняется и нажимается