Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.3
-
None
-
-
2d677cfb1b (qt/qtdeclarative/6.2) c9ffa3b40c (qt/qtdeclarative/6.3) 3c3acf7334 (qt/qtdeclarative/dev) 2d677cfb1b (qt/tqtc-qtdeclarative/6.2) c9ffa3b40c (qt/tqtc-qtdeclarative/6.3) 3c3acf7334 (qt/tqtc-qtdeclarative/dev)
Description
Our custom image provider for font icons started to produce blurry images on High DPI displays following an upgrade to Qt 6.2.3. We discovered that the image provider is no longer automatically scaling the images to their proper sizes.
One solution we tried was to manually multiply the sourceSize by (Screen.devicePixelRatio * 2) but this resulted in broken item layouts where Buttons and IconImages became too big due to their readonly implicit sizes.
The problem can be reproduced by the imageprovider example found in qtdeclarative. You will notice that the generated pixmaps are not scaled correctly.
I think QTBUG-58416 could be relevant.
Environment:
High DPI scaling factor: 3 DevicePixelRatio: 3
Attachments
Issue Links
- resulted in
-
QTBUG-109854 [REG 6.2.4 -> 6.2.5] QQuickImageProvider doesn't scale properly if Image size is not set on High DPI displays
-
- Closed
-
For Gerrit Dashboard: QTBUG-100355 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
400146,2 | Ensure that image providers scale by default | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
400147,2 | Ensure that image providers scale by default | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
400185,3 | Ensure that image providers scale by default | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |