Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.4.0
-
None
-
Qt 5.4.0, OS X 10.10.1
Description
Using QStyle::drawPrimitive with QMacStyle on Yosemite (OS X 10.10.1) with QStyle::PE_IndicatorCheckBox the checkbox is drawn at the origin instead of at the place requested by option.rect when option.state lacks QStyle::State_Active.
The attached project shows the problem. It draws three checkboxes and three rectangles to show where they should be drawn. One has State_Active turned on, and it draws in the correct place. The other two do not have State_Active turned on. One is drawn at the origin, not in the rectangle requested. The third uses a trick to work around the problem: it draws at the origin into a painter that has been translated to compensate. That one draws in the correct place.
Attachments
Issue Links
- resulted in
-
QTBUG-43070 [REG 5.3->5.4] QtWebkit: Checkboxes on OS X
- Closed