Qt Reference Documentation

QML MenuItem Element

Provides a menu item for accessing to a particular function. More...

Inherits Item

  • List of all members, including inherited members
  • Properties

    Signals

    Detailed Description

    Menu items are normally added as child items to a MenuLayout that is associated with a menu.

    See the Menu documentation for a more information on how to use menus.

    Property Documentation

    read-onlyplatformSubItemIndicator : bool

    Defines whether this menu item has subitems or not. If the value is true, the menu item shows an an icon indicating to the user that the item has subitems. If the value is false, the item does not show the icon and does not have subitems. Normally subitems are shown by opening a ContextMenu that contains the additional menu items.


    read-onlytext : string

    The text that is shown on this menu item.


    Signal Documentation

    MenuItem::clicked ()

    This signal is emitted when the user selects this menu item.