C

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
Inherits:

Item

Properties

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 ApplicationScreens item.

Example usage:

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

        ItemLayer {
            anchors.fill: parent

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

The Screen item contains the defaultApplicationWidth and defaultApplicationHeight properties, which define the default size for an application to use. An item layer with a size larger than this default size might not be supported, depending on the platform and available memory.

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

See also ApplicationScreens.

Property Documentation

backgroundColor : color

Background color to be used for this screen.


defaultApplicationHeight : int

The default height for applications to use on this screen.


defaultApplicationWidth : int

The default width for applications to use on 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 ApplicationScreens 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.