Automatically creates a context menu from the widget's actions. Use addAction() or addMenu() to add items. The menu is displayed on right-click. Common for toolbars and menu widgets.
Disables automatic menu generation. The widget emits customContextMenuRequested(QPoint) signal on right-click, allowing the application to display a custom menu. Most flexible option for complex menus.
Uses the platform's default context menu behavior. On most systems, this shows cut/copy/paste for text widgets, but behavior varies by widget type and platform.
The widget will not display a context menu. If a user right-clicks, nothing happens. Useful for widgets where context menus are not relevant.
Actively prevents context menus from appea
Enum controlling context menu behavior.