Solved Simple question about QProgressBar
-
Hi community
stupid question today ...
When you have the maximumValue and value at 0. the bar is animated, how can I simply make it display 0% in this case ? instead of having this animation.Thx
-
Hi,
myProgressBar->setRange(0, 100); myProgressBar->setValue(0);
-
@SGaist
That s not what i want.
When I create it the range is 0.0 because there is nothing and then when i add and object I will increment the maximum range. because the percentage is calculated based on a given number of objects and not 100 units -
That was just an example, if you don't want the animation you need a range, whether it's 0-1 or 0-20000 is not important.
-
Okay, so I might have to trick at the first iteration as It will be already set to 1 ...
Thx -
Or let the animation run while you don't have yet a value to set
-
It looks very annoying with the animation ...
-
I know that some things don't follow our personal tastes but you must also think about your application users and what they are expecting.