Embedding QProgressBar in QStatusBar: Height issues
When displaying a QProgressBar inside a QStatusBar, the status bar expands vertically to accomodate the progress bar, which I would like to avoid. I tried reducing the height of the progress bar in several ways, but it always grows back. This may be an issue with the Plastique style, which uses a lot of spacing around the text, and also forces the font to use a bold face.
Is there any straight-forward way to reduce the vertical size of the progress bar?
--Elad
Re: Embedding QProgressBar in QStatusBar: Height issues
Did you try using style sheets?
Try setting the max-height property in a style sheet.
1 Attachment(s)
Re: Embedding QProgressBar in QStatusBar: Height issues
I used QProgressBar::setMaximumHeight() and it's working fine (see attachment)
P.S. It's on Vista with Plastique style
Re: Embedding QProgressBar in QStatusBar: Height issues
Thanks. I used setMaximumHeight() using the height of a label in the status bar, and it works well.
--Elad