![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qquickmenubar_p.h"
#include "qquickmenubar_p_p.h"
#include "qquickmenubaritem_p_p.h"
#include "qquickmenu_p.h"
#include "qquickmenu_p_p.h"
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/qpa/qplatformtheme.h>
#include <QtQml/qqmlcontext.h>
#include <QtQml/qqmlcomponent.h>
#include <QtQml/qqmlengine.h>
#include "moc_qquickmenubar_p.cpp"
Go to the source code of this file.
Variables | |
static QT_BEGIN_NAMESPACE const char * | kCreatedFromDelegate = "_qt_createdFromDelegate" |
Provides a window menu bar. |
|
static |
Provides a window menu bar.
\qmltype MenuBar \inherits Container
! \nativetype QQuickMenuBar \inqmlmodule QtQuick.Controls
MenuBar consists of drop-down menus, and is normally located at the top edge of the window.
\quotefromfile qtquickcontrols-menubar.qml \skipuntil begin \printto skipfrom \skipuntil skipto \printto end
Typically, menus are statically declared as children of the menu bar, but MenuBar also provides API to \l {addMenu}{add}, \l {insertMenu}{insert}, \l {removeMenu}{remove}, and \l {takeMenu}{take} menus dynamically. The menus in a menu bar can be accessed using \l menuAt().
Definition at line 63 of file qquickmenubar.cpp.