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"
    source: "qrc:/images/Icon_TurnRight_ON_small.png"
    width: 45
    height: 45
    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: 500
                easing.type: Easing.InOutQuad
            }
        }
    ]
}