C
Qt Quick Ultralite static_library Example
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial
import QtQuick 2.15
import QtQuick.Controls 2.15
Rectangle {
color: "#41CD52"
Text {
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: 30
text: "Qt for MCUs as a static library"
}
Column {
anchors.centerIn: parent
Text {
anchors.horizontalCenter: dataRow.horizontalCenter
text: "Random sensor data:"
}
Row {
id: dataRow
spacing: 10
Button {
id: getSensorDataBtn
onClicked: SensorData.updateSensorValue()
text: "Update"
}
Column {
id: sensorValueText
width: 60
anchors.verticalCenter: dataRow.verticalCenter
Text {
anchors.horizontalCenter: sensorValueText.horizontalCenter
text: "Value:"
}
Text {
anchors.horizontalCenter: sensorValueText.horizontalCenter
text: SensorData.sensorRawValue
}
}
ProgressBar {
from: 0
to: 100
value: SensorData.sensorRawValue
anchors.verticalCenter: dataRow.verticalCenter
}
}
}
}