Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
4.8.x, 5.5.1, 5.6.0 Beta
-
None
Description
QWindowsVistaStyle paints indeterminate QProgressBars incorrectly if they happen to be smaller than the animated part. See the attached screenshot and code for an example. The green part is cut off and a black to transparent gradient shows.
The style always paints (in QWindowsVistaStyle::drawControl for CE_ProgressBarContents) the animated part in a 120x14 (14x120 for vertical) rectangle by compositing a transparent-black-transparent gradient with the native theme element. But the native theme element is clipped to the actual progress bar length (theme.rect = option->rect;). If the bar is smaller than 120 the native part is cut off and the gradient shows.
This bug seems to be present in all Qt versions, even the dev branch.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-51266 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
150299,2 | Paint small progressbars correctly on Vista+ | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |