Contents

Page

A page inside a MainView will have a header and toolbar. Pages can also can be included in Tab object or pushed on a PageStack. Anchors and height of a Page are automatically determined to align with the header of the MainView, but can be overridden. More...

Properties

Detailed Description

Example:

MainView {
    Page {
        title: i18n.tr("Root page")

        tools: ToolbarActions {
            Action {
                text: "one"
                iconSource: Qt.resolvedUrl("1.png")
                onTriggered: print("First action")
             }
             Action {
                text: "two"
                iconSource: Qt.resolvedUrl("2.png")
                onTriggered: print("Second action")
             }
        }

        Rectangle {
            anchors.fill: parent
            color: "red"
        }
    }
}

See also Tabs and PageStack.

Property Documentation

flickable : Flickable

Optional flickable that controls the header. This property is automatically set if the Flickable is one of the Page's direct children. May be set to null to avoid the header from hiding.


title : string

The title of the page. Will be shown in the header of the MainView.


tools : ToolbarActions

The list of actions associated with this Page.