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 ClusterDemo Item { property real temperatureValue: ValueSource.engineTemperature property real minValueAngle: 42.5 property real maxValueAngle: -42.5 property real minimumValue: 40 property real maximumValue: 120 anchors.right: parent.right anchors.top: parent.top anchors.rightMargin: 965 anchors.topMargin: 135 GaugeFiller { id: temperatureFiller value: temperatureValue anchors.fill: parent numVertices: 32 radius: 140 fillWidth: 25 color: "#EF2973" opacity: 0.0 minAngle: minValueAngle visible: false maxAngle: maxValueAngle minValue: minimumValue maxValue: maximumValue Behavior on value { enabled: !ValueSource.automaticDemoMode && startupAnimationsFinished PropertyAnimation { duration: 250 } } } Item { width: 420 height: 10 rotation: temperatureFiller.angle - 47.5 anchors.centerIn: parent Image { anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter source: "image://etc/heatNeedle.png" } } }