Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.7.1, 5.9.0 Beta 4
-
None
Description
Unlike the Image component's, ImageParticle's source property doesn't take Device Pixel Ratio identifier into account.
I have two QRC files:
assets_1.qrc
– avatar.png
assets_2.qrc
– avatar@2x.png
When I run my app on Android Device with device pixel ratio of 3, and try to use qrc:/avatar.png as a ImageParticle's source, avatar.png is loaded instead of avatar@2x.png. Image's component source property work properly.
I'm also trying to optimize my app, by loading only compiled @2x images on startup. In that case ImageParticle throws an error: QML ImageParticle: Cannot open: qrc:/avatar.png
I'm assuming source property for both components should behave the same.