code: def showContextMenu(self, pos):
          
          contextMenu = QtWidgets.QMenu()
          addInspectorActionsToMenu(contextMenu, self.execInspectorDialogAction,
                                    self.inspectorActionGroup)
          contextMenu.exec_(self.mapToGlobal(pos))
docs: Shows the context menu at position pos.