A stack of Page items that is used for inter-Page navigation. Pages on the stack can be popped, and new Pages can be pushed. The page on top of the stack is the visible one. Any non-Page Item that you want to use with PageStack should be created with its visible property set to false. More...
Example:
import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem MainView { PageStack { id: pageStack Component.onCompleted: pageStack.push(page0) Page { id: page0 title: "Root page" Column { anchors.fill: parent ListItem.Standard { text: "Page one" onClicked: pageStack.push(rect, {fillColor: "red"}) progression: true } ListItem.Standard { text: "Page two (external)" onClicked: pageStack.push(Qt.resolvedUrl("MyCustomPage.qml")) progression: true } } } Page { id: fillColor property alias color: rect.color Rectangle { id: rect anchors.fill: parent visible: false } } } }
Use PageStack inside MainView and push Page items onto the stack to ensure automatic header and toolbar.
This documentation is under development and is subject to change.
The currently active page
This documentation is under development and is subject to change.
The current size of the stack
tools : ToolbarActions |
This documentation is deprecated.
This property is deprecated. Pages will now automatically update the toolbar when activated.
This documentation is under development and is subject to change.
Deactivate the active page and clear the stack.
This documentation is under development and is subject to change.
Pop the top item from the stack if the stack size is at least 1. Do not do anything if 0 or 1 items are on the stack.
This documentation is under development and is subject to change.
Push a page to the stack, and apply the given (optional) properties to the page.