Create a context menu, then set the created QMenu as the context menu.
        This builds the menu with all required actions and signal-slot connections.

def create_assign_context_menu(self):
        """
        Create a context menu, then set the created QMenu as the context menu.
        This builds the menu with all required actions and signal-slot connections.
        """
        menu = QMenu("AutoKey")
        self._build_menu(menu)
        self.setContextMenu(menu)