Provides a horizontal menu bar. More...
| Import Statement: | import QtQuick.Controls . |
| Since: | Qt 5.1 |
[Missing image menubar.png]
MenuBar can be added to an ApplicationWindow, providing menu options to access additional functionality of the application.
ApplicationWindow {
...
menuBar: MenuBar {
Menu {
title: "File"
MenuItem { text: "Open..." }
MenuItem { text: "Close" }
}
Menu {
title: "Edit"
MenuItem { text: "Cut" }
MenuItem { text: "Copy" }
MenuItem { text: "Paste" }
}
}
}
See also ApplicationWindow::menuBar.
The style Component for this control.
This QML property was introduced in QtQuick.Controls.Styles 1.2.
See also MenuBarStyle.