Solved How to dsable QProgressBar animation
-
Hi, is there a way to disable the QProgressBar animation on value= 0?
-
Is there a reason why you are setting both the min and max to zero?
-
Is there is.
-
You only get that effect when both the min and max are zero. Set the max to something else (by default it's 100). You can set it to some other value later if that value makes more sense (e..g, number of bytes of your firmware). Can you post your code that sets up the QProgressBar?
-
@mrdebug To add to @mchinand : what behaviour do you expect if min = max = 0 and you disable this animation? What should the progress bar do/show? This animation is an indication that it is unclear when it will be finished but to make it clear to the user that something is going on it is animated (else user would think it is hanging or is finished).
-
Solved width max> 0.
Thanks.