Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
5.8.0
-
None
-
* Qt 5.8.0
* QtQuick 2.8
* Any Device, Tested on Manjaro (normal DPI) and Android 5.1 (high DPI)
-
b6f085a275c76912862463657c2a91e35bd8936b (qt/qtdeclarative/dev) f42d4593ef3fc95a7808db4b370a0b03fb940694 (qt/qtdeclarative/6.2)
Description
If you use the QtQuick Image on a device with a high-DPI scaling higher than 1, and set a size for a svg image, it will be loaded for the given size, and not the real, scaled size. Simple example:
Image { anchors.centerIn: parent source: "https://storage.googleapis.com/material-icons/external-assets/v4/icons/svg/ic_autorenew_black_24px.svg" }
If running on a normal display, it's fine. But on Android, for example, with the DPI-Scaling Factor 2 (automatic value), it becomes blurred, because it's loaded for 24x24 pixels, but drawn with the double resolution!
Attachments
Issue Links
- is duplicated by
-
QTBUG-89734 The "sourceSize" property value of the "Image" item is wrong
- Closed
-
QTBUG-97450 Default sourceSize to implicit size * DPR for scalable images
- Closed
- relates to
-
QTBUG-44863 Scaled SVG degraded quality in QML
- Closed
-
QTBUG-99533 SVG Icons are fuzzy on high DPI displays
- Reported
-
QTBUG-81018 Image sourceSize binding causes the size to become smaller unexpectedly
- Closed
For Gerrit Dashboard: QTBUG-58416 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
351243,1 | WIP: Add "devicePixelRatio" property for QQuickImageBase | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |