C

Qt Cluster: Rendering and Recovery from Main UI Failure

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial

// This file is part of the Qt Safe Renderer module
import QtQuick
import Qt.SafeRenderer

SafeImage {
    id: turnright
    objectName: "turnright"
    anchors.right: parent.right
    source: "qrc:/images/Icon_TurnRight_ON.png"
    width: 72
    height: 72
    opacity: 1.0
    states: [
        State {
            name: "visible"
            PropertyChanges {
                target: turnright
                opacity: 1.0
            }
        },
        State {
            name: "hidden"
            PropertyChanges {
                target: turnright
                opacity: 0.0
            }
        }
    ]
    transitions: [
        Transition {
            from: "*"
            to: "*"
            NumberAnimation {
                target: turnright
                properties: "opacity"
                duration: 1000
                easing.type: Easing.InOutQuad
            }
        }
    ]
}