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

Column {
    spacing: 20
    property string value: ""
    property string title: ""
    property string unit: "KM"

    Row {
        anchors.horizontalCenter: parent.horizontalCenter

        Text {
            text: value
            font.pixelSize: 36
            color: "lightGray"
        }
        Text {
            text: unit
            font.pixelSize: 24
            color: "lightGray"
        }
    }

    Text {
        text: title
        font.pixelSize: 24
        horizontalAlignment: Text.AlignHCenter
        color: "lightGray"
    }
}