MenuBar QML Type
Provides a horizontal menu bar. 更多...
Import Statement: | import QtQuick.Controls 1.4 |
开始支持版本: | 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.
属性
style : Component |
The style Component for this control.
This QML property was introduced in QtQuick.Controls.Styles 1.2.
参见 MenuBarStyle.