Contents

MainView

The root Item for all applications. It automatically adds a header and toolbar for its contents. More...

Properties

Signal Handlers

Detailed Description

Examples:

MainView {
    Page {
        title: "Header text"
        Button {
            anchors.centerIn: parent
            text: "Click me"
        }
    }
}

Header and toolbar contents are automatically taken from Page, Tabs and PageStack. Only one MainView must be used per application, and it should be the root Item of the application.

Property Documentation

applicationName : string

This documentation is under development and is subject to change.

The property holds the application's name, which must be the same as the desktop file's name.


tools : ToolbarActions

This documentation is deprecated.

The tools of the main view's toolbar. This property is deprecated. Pages will now automatically update the toolbar when activated.


Signal Handler Documentation

MainView::onToolsChanged()