Provides a horizontal menu bar. 更多...
import 语句: | import QtQuick.Controls 1.4 |
Since: | Qt 5.1 |
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" } } } }
另请参阅 ApplicationWindow::menuBar .
The list of menus in the menubar.
另请参阅 Menu .
style : Component |
The style Component for this control.
This property was introduced in QtQuick.Controls.Styles 1.2.
另请参阅 MenuBarStyle .