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

(b560d65922e2ee647738e60e583babd2463fd95e)

#include "qquickpage_p.h"
#include "qquickpage_p_p.h"
#include "qquicktoolbar_p.h"
#include "moc_qquickpage_p.cpp"
+ Include dependency graph for qquickpage.cpp:

Go to the source code of this file.

Variables

static QT_BEGIN_NAMESPACE const QQuickItemPrivate::ChangeTypes LayoutChanges
 Styled page control with support for a header and footer.
 

Variable Documentation

◆ LayoutChanges

QT_BEGIN_NAMESPACE const QQuickItemPrivate::ChangeTypes LayoutChanges
static
Initial value:

Styled page control with support for a header and footer.

\qmltype Page
\inherits Pane

! \instantiates QQuickPage \inqmlmodule QtQuick.Controls

Since
5.7

Page is a container control which makes it convenient to add a \l header and \l footer item to a page.

Items declared as children of a Page are: \list

  • automatically parented to the Page's contentItem. Items created dynamically need to be explicitly parented to the contentItem.
  • not automatically positioned or resized. \endlist

The following example snippet illustrates how to use a page-specific toolbar header and an application-wide tabbar footer.

\qml import QtQuick.Controls import QtQuick.Layouts

ApplicationWindow { visible: true

StackView { anchors.fill: parent

initialItem: Page { header: ToolBar { ... }

ColumnLayout { anchors.fill: parent ... } } }

footer: TabBar { ... } } \endqml

See also
ApplicationWindow, {Container Controls}, {Focus Management in Qt Quick Controls}

Definition at line 71 of file qquickpage.cpp.

Referenced by QQuickPage::~QQuickPage(), QQuickPage::setFooter(), and QQuickPage::setHeader().