Page QML Type | Qt Labs Controls 5.6

Qt 5.6 | Qt Labs Controls | QML Types | Page QML Type

Qt 5.6.3 Reference Documentation

# Page QML Type

A page control. More...

Import Statement: | import Qt.labs.controls 1.0
Inherits: | Control

- List of all members, including inherited members

## Properties

- contentChildren : list<Item>
- contentData : list<Object>
- footer : Item
- header : Item

## Detailed Description

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

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

      import Qt.labs.controls 1.0

      ApplicationWindow {
          visible: true

          StackView {
              anchors.fill: parent

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

          footer: TabBar {
              // ...
          }
      }

See also ApplicationWindow and Container Controls.

## Property Documentation

contentChildren : list<Item>

This property holds the list of content children.

See also Item::children.

[default] contentData : list<Object>

This property holds the list of content data.

See also Item::data.

footer : Item

This property holds the page footer item. The footer item is positioned to the bottom, and resized to the width of the page. The default value is `null`.

See also header and ApplicationWindow::footer.

header : Item

This property holds the page header item. The header item is positioned to the top, and resized to the width of the page. The default value is `null`.

See also footer and ApplicationWindow::header.