Screen QML Type

Contains QML items to be shown on a specific screen. More...

Import Statement: import QtQuickUltralite.Layers .
Since: Qt Quick Ultralite 1.7



Detailed Description

All QML items that are to be shown on a screen have to be contained in a Screen item. One or muliple Screen items can be instantiated within an Application item.

Example usage:

Screen {
    outputDevice: "Primary screen"
    backgroundColor: "black"

    ItemLayer {
        anchors.fill: parent

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

Note: This type is specific to Qt Quick Ultralite. See also the compatibility page.

See also Application.

Property Documentation

backgroundColor : color

Background color to be used for this screen.

outputDevice : string

Name of the screen to be used.

This is the name of the screen that should be used to display the items. It has to match the identifier defined by the platform screens.

The first screen with a matching name is used for display. If this property is empty or skipped the screen are matched by their order in the Application item to the next unused screen from the platform.

See the Porting Guide on how to setup multiple screens.

See also Qul::PlatformInterface::Screen.

Available under certain Qt licenses.
Find out more.