ApplicationWindow


A window that provides features commonly used for Material Design apps. More...
import Material 0.2
Properties and Methods

Detailed Description

A window that provides features commonly used for Material Design apps.

This is normally what you should use as your root component. It provides a Toolbar and PageStack to provide access to standard features used by Material Design applications.

Here is a short working example of an application:

import QtQuick 2.4
import Material 0.2

ApplicationWindow {
    title: "Application Name"

    initialPage: page

    Page {
        id: page
        title: "Page Title"

        Label {
            anchors.centerIn: parent
            text: "Hello World!"
        }
    }
}

Properties

clientSideDecorations : bool

Set to true to include window decorations in your app's toolbar and hide the regular window decorations header.

initialPage : Page

The initial page shown when the application starts.

pageStack : PageStack

The PageStack used for controlling pages and transitions between pages.

theme : AppTheme

A grouped property that allows the application to customize the the primary color, the primary dark color, and the accent color. See Theme for more details.

Methods

showError(title, text, secondaryButtonText, retry)

Show an error in a dialog, with the specified secondary button text (defaulting to "Close") and an optional retry button.

Returns a promise which will be resolved if the user taps retry and rejected if the user cancels the dialog.