A native menubar. More...
| Import Statement: | import Qt.labs.platform 1.0 |
| Since: | Qt 5.8 |
| Inherits: |
The MenuBar type provides a QML API for native platform menubars.

A menubar consists of a list of drop-down menus.
MenuBar {
id: menuBar
Menu {
id: fileMenu
title: qsTr("File")
// ...
}
Menu {
id: editMenu
title: qsTr("&Edit")
// ...
}
Menu {
id: viewMenu
title: qsTr("&View")
// ...
}
Menu {
id: helpMenu
title: qsTr("&Help")
// ...
}
}
MenuBar is currently available on the following platforms:
Note: Types in Qt.labs modules are not guaranteed to remain compatible in future versions.
See also Menu.
|
[default] data : list<Object> |
|
window : Window |
|
void addMenu(Menu menu) |
Adds a menu to end of the menubar.
|
void removeMenu(Menu menu) |
Removes a menu from the menubar.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: