Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickapplicationwindow.cpp File Reference

(4a2466ea075676e8953ac7e9729492a0ace02c32)

#include "qquickapplicationwindow_p.h"
#include "qquickcontentitem_p.h"
#include "qquickpopup_p_p.h"
#include "qquickcontrol_p_p.h"
#include "qquicktextarea_p.h"
#include "qquicktextfield_p.h"
#include "qquicktoolbar_p.h"
#include <private/qtquicktemplates2-config_p.h>
#include "qquickdeferredexecute_p_p.h"
#include "qquickdeferredpointer_p_p.h"
#include <QtCore/private/qobject_p.h>
#include <QtCore/qscopedvaluerollback.h>
#include <QtQuick/private/qquickitem_p.h>
#include <QtQuick/private/qquickitemchangelistener_p.h>
#include <QtQuick/private/qquickwindowmodule_p_p.h>
#include "moc_qquickapplicationwindow_p.cpp"
+ Include dependency graph for qquickapplicationwindow.cpp:

Go to the source code of this file.

Classes

class  QQuickApplicationWindowPrivate
 
class  QQuickApplicationWindowAttachedPrivate
 

Functions

static void layoutItem (QQuickItem *item, qreal y, qreal width)
 
static QQuickItemfindActiveFocusControl (QQuickWindow *window)
 

Variables

static QT_BEGIN_NAMESPACE const QQuickItemPrivate::ChangeTypes ItemChanges
 Styled top-level window with support for a header and footer.
 

Function Documentation

◆ findActiveFocusControl()

static QQuickItem * findActiveFocusControl ( QQuickWindow * window)
static

Definition at line 251 of file qquickapplicationwindow.cpp.

References item, QGraphicsItem::parentItem(), and window().

Referenced by QQuickApplicationWindowPrivate::_q_updateActiveFocus(), and QQuickApplicationWindowAttachedPrivate::activeFocusChange().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layoutItem()

Variable Documentation

◆ ItemChanges

QT_BEGIN_NAMESPACE const QQuickItemPrivate::ChangeTypes ItemChanges
static
Initial value:

Styled top-level window with support for a header and footer.

\qmltype ApplicationWindow
\inherits Window

! \instantiates QQuickApplicationWindow \inqmlmodule QtQuick.Controls

Since
5.7

ApplicationWindow is a \l Window which makes it convenient to add a \l {menuBar}{menu bar}, \l header and \l footer item to the window.

You can declare ApplicationWindow as the root item of your application, and run it by using \l QQmlApplicationEngine. In this way you can control the window's properties, appearance and layout from QML.

\qml import QtQuick.Controls 2.12

ApplicationWindow { visible: true

menuBar: MenuBar { ... }

header: ToolBar { ... }

footer: TabBar { ... }

StackView { anchors.fill: parent } } \endqml

Note
By default, an ApplicationWindow is not visible.

Definition at line 90 of file qquickapplicationwindow.cpp.