- Qt 6.9
- Qt Quick Controls
- Qt Quick Controls Guidelines
- Menu Controls
- Qt 6.9.1 Reference Documentation

Input Controls ◦ Navigation Controls

# Menu Controls

ContextMenu | Attached type provides a way to open a context menu in a platform-appropriate manner
Menu | Popup that can be used as a context menu or popup menu
MenuBar | Provides a window menu bar
MenuBarItem | Presents a drop-down menu within a MenuBar
MenuItem | Presents an item within a Menu

Each type of menu control has its own specific target use case. The following sections offer guidelines for choosing the appropriate type of menu control, depending on the use case.

## Menu Control

Menu control can be used for context menus; for example, after right-clicking. It can also be used for popup menus; for example, a menu that is shown after clicking a button.

MenuItem is an item in the Menu control. Each item in a menu:

- displays text to the user
- allows checking/unchecking
- is highlighted (for example, on keyboard navigation)
- performs some action on activation

## MenuBar Control

MenuBar control can be used for window menu bars.

MenuBarItem is an item in the MenuBar control. Each item in a menu bar:

- displays text to the user
- is highlighted (for example, on keyboard navigation)
- pops up the respective menu on activation

Input Controls ◦ Navigation Controls