-
Bug
-
Resolution: Done
-
P2: Important
-
5.11.0 Beta 3
-
None
-
3
-
22d5c6ae4acce257df3a231ede2a501fdddac300 (qt/qtdoc/dev)
-
Da Vinci sprint 10
Documentation at https://doc.qt.io/qt-5/scalability.html states that:
"On macOS and iOS, you can provide alternative resources with double the size and the @2x identifier for icons and images and place them in the resource file. On Retina displays, the @2x versions are used automatically."
Documentation recommends doing this:
Image {
source: {
if (Screen.PixelDensity < 40)
"image_low_dpi.png"
else if (Screen.PixelDensity > 300)
"image_high_dpi.png"
else
"image.png"
}
}
}
I tested on my Android devices and @2x images do get loaded using qml Image. I think it's important to clearly state what the supported and recommended way of loading multiresolution images really is.
- mentioned in
-
Page Loading...
| For Gerrit Dashboard: QTBUG-67806 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 302868,2 | Doc: Scalability: Document automatic image selection on Android | dev | qt/qtdoc | Status: MERGED | +2 | 0 |