From 48ddf3d5ae39894227bec35a39fb602f6a6e9180 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 26 Feb 2025 15:24:58 +0100 Subject: [PATCH] Show progress bar percentage --- qml/Main.qml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/qml/Main.qml b/qml/Main.qml index 13f5a69..c8dc9a6 100644 --- a/qml/Main.qml +++ b/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 + } } } }