MenuBarItem QML Type▲
-
Import Statement: import QtQuick.Controls
-
Inherits: AbstractButton
-
Group: MenuBarItem is part of qtquickcontrols-menus
Detailed Description▲
MenuBarItem presents a Menu within a MenuBar. The respective drop-down menu is shown when a MenuBarItem is triggered via keyboard, mouse, or touch.
MenuBarItem is used as a default delegate type for MenuBar. Notice that it is not necessary to declare MenuBarItem instances by hand when using MenuBar. It is sufficient to declare Menu instances as children of the MenuBar and the respective items are created automatically.
See Also▲
See also Customizing MenuBar, MenuBar, Menu Controls
Property Documentation▲
highlighted : bool▲
This property holds whether the menu bar item is highlighted by the user.
A menu bar item can be highlighted by mouse hover or keyboard navigation.
The default value is false.
menu : Menu▲
[read-only] menuBar : Menu▲
Signal Documentation▲
void triggered()▲
This signal is emitted when the menu bar item is triggered by the user.
The corresponding handler is onTriggered.