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