Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.5.1
Description
When using a QLabel with a .png image assigned to it and "scaledContents" is set with normal DPI display the image is scaled to the size of the QLabel when the size is changed.
However on a Mac system with retina display, if the window is on the retina display and the size is changed, the image is incorrectly scaled (x2) and only the top left of the image is seen - but magnified x2.
Moving the window over to a non-retina display causes it to draw correctly. Then moving it back to the retina display it is now drawn correctly.
To reproduce the issue
1. Compile and run the attached test application.
2. Move the window to a Retina display and click "resize".
Attachments
Issue Links
- duplicates
-
QTBUG-46846 QLabel scaledContents broken on high resolution (retina) displays
- Closed
- relates to
-
QTBUG-49108 QLabel setpixmap is creating a pixmap several times larger than the label... (Regression)
- Closed