55 lines
1.0 KiB
QML
55 lines
1.0 KiB
QML
// Copyright (c) Daniel Gakwaya.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
|
|
Window {
|
|
visible: true
|
|
width: 640
|
|
height: 480
|
|
title: qsTr("ProgressBar")
|
|
|
|
Column {
|
|
width: parent.width
|
|
spacing: 20
|
|
|
|
Button {
|
|
text: "Start"
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
onClicked: {
|
|
progressBarId.value = 78
|
|
}
|
|
}
|
|
|
|
|
|
Dial {
|
|
id: dialId
|
|
from : 1
|
|
to: 100
|
|
value: 40
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
onValueChanged: {
|
|
progressBarId.value = value
|
|
}
|
|
|
|
}
|
|
|
|
|
|
ProgressBar {
|
|
id: progressBarId
|
|
from: 1
|
|
to: 100
|
|
value: 40
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
ProgressBar {
|
|
id: progressBarId1
|
|
indeterminate: true
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
}
|
|
}
|
|
}
|