Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickmenubar.cpp File Reference

(01cd43d30e3ca2c4dd94a4a4711604adb9417517)

#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"
Include dependency graph for qquickmenubar.cpp:

Go to the source code of this file.

Variables

static QT_BEGIN_NAMESPACE const char * kCreatedFromDelegate = "_qt_createdFromDelegate"
 Provides a window menu bar.

Variable Documentation

◆ kCreatedFromDelegate

QT_BEGIN_NAMESPACE const char * kCreatedFromDelegate = "_qt_createdFromDelegate"
static

Provides a window menu bar.

\qmltype MenuBar
\inherits Container

! \nativetype QQuickMenuBar \inqmlmodule QtQuick.Controls

Since
5.10

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.