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

Item {
    id: gadget
    property bool green: false

    width: 175.5
    height: 175.5

    Image {
        id: knob
        anchors.fill: parent
        source: "image://etc/gaugeCenterBig.png"
    }
    states: [
        State {
            name: "red"
            when: !gadget.green
        },
        State {
            name: "green"
            when: gadget.green

//            PropertyChanges {
//                target: red
//                opacity: 0
//            }
        }
    ]
}