Qt Components Hildon  0.20
QML components for Maemo5 with Hildon styling.
 All Classes Functions Properties Groups Pages
Public Slots | Properties | List of all members
WindowStack Class Reference

A component for managing stacked windows. More...

Public Slots

void clear ()
 Pops all windows until the root window becomes the current window.
void pop (Window toWindow=0)
 Pops a window from the stack.
Window push (Component component, dict properties=null)
 Pushes a window created from component onto the stack, and optionally sets properties.
Window push (url url, dict properties=null)
 Pushes a window created from url onto the stack, and optionally sets properties.

Properties

Window currentWindow
 The window that is currently active.
int depth
 The number of windows on the stack.
Window rootWindow
 The initial window on the stack.

Detailed Description

A component for managing stacked windows.

You do not normally need to instantiate this component, since you can simply use the ApplicationWindow component, which already has a window stack.

import QtQuick 1.0
import org.hildon.components 1.0
ApplicationWindow {
id: window
title: qsTr("Window Example")
visible: true
Button {
id: button
anchors.centerIn: parent
text: "Push window"
onClicked: windowStack.pushWindow(Qt.resolvedUrl("SecondWindow.qml"))
}
}
See Also
ApplicationWindow, Window

Member Function Documentation

void WindowStack::clear ( )
slot

Pops all windows until the root window becomes the current window.

See Also
pop()
void WindowStack::pop ( Window  toWindow = 0)
slot

Pops a window from the stack.

If toWindow is specified, windows will be popped from the stack until toWindow becomes the current window.