'Execute the menu at position `pos` (in global screen coordinates).
Return the triggered :class:`QAction` or `None` if no action was
triggered. \'Search\' text field is initialized with `searchText` if
provided.'

def exec_(self, pos=None, searchText=''):

    self.popup(pos, searchText)
    self.setFocus(Qt.PopupFocusReason)
    self.__triggeredAction = None
    self.__loop = QEventLoop()
    self.__loop.exec_()
    self.__loop.deleteLater()
    self.__loop = None
    action = self.__triggeredAction
    self.__triggeredAction = None
    return action
