Show progress bar percentage
This commit is contained in:
parent
767f706fea
commit
48ddf3d5ae
1 changed files with 16 additions and 4 deletions
20
qml/Main.qml
20
qml/Main.qml
|
@ -140,11 +140,23 @@ ApplicationWindow {
|
|||
font.pixelSize: 14
|
||||
}
|
||||
|
||||
ProgressBar {
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
from: 0
|
||||
to: 100
|
||||
value: factorizationController.progress
|
||||
Layout.preferredHeight: 25
|
||||
|
||||
ProgressBar {
|
||||
anchors.fill: parent
|
||||
to: 100
|
||||
value: factorizationController.progress
|
||||
}
|
||||
|
||||
Text {
|
||||
text: factorizationController.progress.toFixed(0) + "%"
|
||||
anchors.centerIn: parent
|
||||
font.pixelSize: 16
|
||||
color: "black"
|
||||
font.bold: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue