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
qquickapplicationwindow.cpp File Reference

(d380dcbe4a18d34ef54b84cb8fda9bfced82523e)

#include "qquickapplicationwindow_p.h"
#include "qquickpopup_p_p.h"
#include "qquickcontrol_p_p.h"
#include "qquicktemplatesutils_p.h"
#include "qquicktextarea_p.h"
#include "qquicktextfield_p.h"
#include "qquicktoolbar_p.h"
#include "qquicktooltip_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 <QtQml/private/qqmlpropertytopropertybinding_p.h>
#include <QtQuick/private/qquickitem_p.h>
#include <QtQuick/private/qquicksafearea_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 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 299 of file qquickapplicationwindow.cpp.

References QQuickTemplatesUtils::isInteractiveControlType().

+ Here is the call graph for this function:

◆ layoutItem()

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

Definition at line 187 of file qquickapplicationwindow.cpp.

Variable Documentation

◆ ItemChanges

static const QQuickItemPrivate::ChangeTypes ItemChanges
static
Initial value:

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

\qmltype ApplicationWindow
\inherits Window

! \nativetype 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 115 of file qquickapplicationwindow.cpp.