Menu Controls

Menu

Popup that can be used as a context menu or popup menu

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 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

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.9/qtquickcontrols2-menus.html