C
Qt Cluster: Rendering and Recovery from Main UI Failure
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
// This file is part of the Qt Safe Renderer module
import QtQuick
import ".."
import ClusterDemo
Loader {
property real designWidth: 1280
property real designHeight: 720
width: 1920
height: 1080
property real scaleFactor: width / designWidth;
id: loader
asynchronous: true
active: frame.status === Image.Ready
source: "DashboardView.qml"
Image {
id: frame
width: 1280 * scaleFactor
height: 480 * scaleFactor
fillMode: Image.Stretch
anchors.top: parent.top
anchors.topMargin: 120 * scaleFactor
visible: loader.status !== Loader.Ready //only show until the real dashboard is loaded
source: "image://etc/DashboardFrameSport-mask.png"
z: 2
}
Image {
id: logo
anchors.horizontalCenter: parent.horizontalCenter
y: 600
source: "image://etc/Built_with_Qt.png"
}
}