MenuBarItem QML Type
|Import Statement:||import QtQuick.Controls|
- void triggered()
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.
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
menu : Menu
This property holds the menu that this item presents in a menu bar, or
null if this item does not have a menu.
[read-only] menuBar : Menu
This property holds the menu bar that contains this item, or
null if the item is not in a menu bar.
This signal is emitted when the menu bar item is triggered by the user.
Note: The corresponding handler is
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.