C

Qt Safe Monitor: Qt Quick Ultralite Example on Bare-Metal Traveo II

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

import QtQuick
import QtQuickUltralite.Layers
import QtQuickUltralite.SafeRenderer

Item {

    property alias speedValue: speedValue.text

    SafeText {
        id: speedValue
        objectName: "speedValue"
        anchors.horizontalCenter: parent.horizontalCenter
        horizontalAlignment: SafeText.AlignHCenter
        verticalAlignment: SafeText.AlignVCenter
        font.family: "Barlow-mono"
        width: 130
        height: 89
        text: "0"
        color: "#FFFFFF"
        fillColor: "#000000"
        font.pixelSize: 74
        font.italic: true
        font.bold: true
        runtimeEditable: true
    }

    SafeText {
        id: speedLabel
        objectName: "speedLabel"
        anchors.horizontalCenter: parent.horizontalCenter
        horizontalAlignment: SafeText.AlignHCenter
        verticalAlignment: SafeText.AlignVCenter
        font.family: "Barlow-mono"
        width: 47
        height: 24
        y: 79
        text: "km/h"
        color: "#FFFFFF"
        fillColor: "#000000"
        font.pixelSize: 20
        runtimeEditable: false
    }
}