MenuBar QML Type
A native menubar. More...
|Import Statement:||import Qt.labs.platform|
- void addMenu(Menu menu)
- void clear()
- void insertMenu(int index, Menu menu)
- void removeMenu(Menu menu)
The MenuBar type provides a QML API for native platform menubars.
A menubar consists of a list of drop-down menus.
MenuBar is currently available on the following platforms:
- Linux (only available on desktop environments that provide a global D-Bus menu bar)
Note: Types in Qt.labs modules are not guaranteed to remain compatible in future versions.
See also Menu.
window : Window
void addMenu(Menu menu)
Adds a menu to end of the menubar.
Removes all menus from the menubar.
void removeMenu(Menu menu)
Removes a menu from the menubar.
© 2022 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.