Application QML Type

An application container for multiple screens. 更多...

导入语句: import QtQuickUltralite.Layers .
Since: Qt Quick Ultralite 1.7
继承:

Item

详细描述

应用程序 type can contain multiple Screen items to display QML on devices with multiple display outputs.

用法范例:

Application {
    Screen {
        outputDevice: "Primary screen"
        ItemLayer {
            anchors.fill: parent
            Rectangle {
                anchors.fill: parent
                color: "red"
            }
        }
    }
    Screen {
        outputDevice: "Secondary screen"
        ItemLayer {
            anchors.fill: parent
            Rectangle {
                anchors.fill: parent
                color: "green"
            }
        }
    }
}
						

注意: This type is specific to Qt Quick Ultralite. See also the compatibility 页面。

另请参阅 Screen .