[Development] The behaviour of Image / image provider are different from 5.5.1 to 5.6 in iOS

Ben Lau xbenlau at gmail.com
Sun Apr 17 15:34:05 CEST 2016


Moreover, I think BorderImage also do not handle image from image provider
in high DPI mode correctly.

I have attach the screenshot captured in iPhone6 (devicePixelRatio == 3)

qrc://image/button2.png : That is correct

image://arts/button2 : The same image source, but the result is not correct.

Example code:
https://github.com/benlau/quickcross/blob/master/tests/imageprovider/main.qml




On 13 April 2016 at 05:12, Ben Lau <xbenlau at gmail.com> wrote:

>
>
> On 12 April 2016 at 21:02, Sorvig Morten <Morten.Sorvig at theqtcompany.com>
> wrote:
>
>>
>> > On 11 Apr 2016, at 12:38, Ben Lau <xbenlau at gmail.com> wrote:
>> >
>> > Hi,
>> >
>> > I am writing an image provider that read all the images to memory at
>> startup. And I found that the behaviour is different from 5.5.1 to 5.6 in
>> iOS. Seems that it is undocumented. I wonder is it an expected behaviour or
>> a bug?
>>
>> Hi, this is indeed a regression in 5.6. We have a fix ready if you want to
>> patch your local version of Qt:
>>
>>         https://codereview.qt-project.org/#/c/155514
>>
>> Thanks for bringing it up!
>> Morten
>
>
> HI Sorvig,
>
> It is great to hear that! Thx!
>
> So the correct way for a image provider to fit in a High DPI environment
> is to set the devicePixelRatio in the returned QImage?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160417/f06eb99f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2016-04-17 21.15.41.png
Type: image/png
Size: 212004 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160417/f06eb99f/attachment.png>


More information about the Development mailing list