Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Reset Progress Bar
kbt90 last edited by
I developed a progress bar in QTDesigner with the minimum value set at 0 and the maximum value at 100. When the user navigates to this particular widget, the progress bar updates correctly, ending at 100. If the user navigates away from the page and back to it, the value remains at 100. Because of this, it appears that the task is completed, even though it is still in the process of carrying out the task.
I've tryed several different things upon the widget being shown, such as progressBar->setValue(0) and progressBar->reset(). I've looked at different references, but can't seem to find a solution. Any help would be much appreciated.
giesbert last edited by
a bit more code could help.
In general, setValue is the right solution.