MenuBar QML Type▲
-
Import Statement: import QtQuick.Controls 1.4
-
Since: Qt 5.1
-
Group: MenuBar is part of Application Window, Buttons and Controls
Detailed Description▲

MenuBar can be added to an ApplicationWindow, providing menu options to access additional functionality of the application.
Sélectionnez
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▲
See also ApplicationWindow::menuBar