Progress bar is not showing: don't understand how progress bar works
-
wrote on 15 Nov 2018, 07:27 last edited by
The progress bar is implemented like this:
import QtQuick.Controls 2.0 as QQC20 Item { QQC20.ProgressBar { id: progressbar_id visible: false // even if "true", the progress bar does NOT show up on UI from: editorScene.progressbarMin to: editorScene.progressbarMax value: editorScene.progressbarVal onValueChanged: { console.log("Progressbar value changed: ", progressbar_id.value) } onVisibleChanged: { console.log("Progressbar visibility chanaged: ", progressbar_id.visible) } } }
The progress bar value and visibility are actually changed as confirmed by the methods
onValueChanged
andonVisibleChanged
.But the progress bar does NOT show up on the UI!
-
The progress bar is implemented like this:
import QtQuick.Controls 2.0 as QQC20 Item { QQC20.ProgressBar { id: progressbar_id visible: false // even if "true", the progress bar does NOT show up on UI from: editorScene.progressbarMin to: editorScene.progressbarMax value: editorScene.progressbarVal onValueChanged: { console.log("Progressbar value changed: ", progressbar_id.value) } onVisibleChanged: { console.log("Progressbar visibility chanaged: ", progressbar_id.visible) } } }
The progress bar value and visibility are actually changed as confirmed by the methods
onValueChanged
andonVisibleChanged
.But the progress bar does NOT show up on the UI!
wrote on 15 Nov 2018, 08:06 last edited by@m3g1dd You are missing width and height. add them .
-
@m3g1dd You are missing width and height. add them .
wrote on 15 Nov 2018, 09:46 last edited by@Tirupathi-Korla I tried
width
andheight
but the progress bar is still NOT showing. Maybe somewhere else in my code needs to be modified.width: 400 height: 400 x: 200 y: 200
-
Run simple program like the following in your setup.
Item{ visible: true width: 440 height: 480 QQC20.ProgressBar{ value: 0.5 x: 100;y:100 } }
It should run. Then look at your app and check what is the issue. Most probably it is width, height or color issue.
-
@Tirupathi-Korla I tried
width
andheight
but the progress bar is still NOT showing. Maybe somewhere else in my code needs to be modified.width: 400 height: 400 x: 200 y: 200
wrote on 21 Nov 2018, 09:17 last edited by@m3g1dd did you change the visiblity to true??
-
@m3g1dd are you able to work with ProgressBar ? If the issue is resolved you move the issue to SOLVED state. If you need a help do let us know.
2/7