Progress bar is not showing: don't understand how progress bar works
Unsolved
QML and Qt Quick
-
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!
-
@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.
-
@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.