QProgressBar rendering is not good

1.1k Views Asked by At

I have added a qprogressbar to a form in qt designer, and set minimum and maximum value to 0 to show the in-progress state. but when I run the application progress bar is displayed with the shadow mark as shown in this pic...

enter image description here

Same thing happens when I add QProgressDialog from the code.. could some one suggest me how to avoid this problem ?

I am using qt 4.8.4 sdk with qt creator 2.8.0 in Win 7 64 bit.

1

There are 1 best solutions below

2
On

Most likely you're allowing the progressbar to resize vertically. It can't. You must set its vertical size policy to fixed.