PDA

View Full Version : Customizing indeterminate QProgressBar



wladek
10th August 2010, 08:40
Hi Guys,

I've seen in the documentation that indeterminate QProgressBar can be customized using Style Sheets, by using the :indeterminate (http://doc.trolltech.com/latest/stylesheet-reference.html#indeterminate-ps) pseudo state, but I had no success using it.

Changing the color of the ::chunk (http://doc.trolltech.com/latest/stylesheet-reference.html#chunk-sub) sub-control for a normal QProgressBar:
QProgressBar::chunk{
background-color: red;
}

And then I tried :
QProgressBar::chunk:indeterminate{
background-color: blue;
}
but this was with no success.
I also tried:
QProgressBar:indeterminate::chunk{
background-color: blue;
}, but again, no success.

Has any of you managed to successfully use the :indeterminate state?

Thanks and regards,
Wladek

P.S.: take a look at the attached screen shot (the upper progress bar is an indeterminate progress bar)