Comment 2 for bug 1599203

Revision history for this message
Michael Terry (mterry) wrote : Re: CrossFadeImage: modifying sourceSize causes black image

OK, here's a qml file that you can run with qmlscene on your desktop. Put it in the same folder as horizontal.jpg and vertical.jpg.

When switching between a portrait and landscape source and sourceSize, you can see that CrossFadeImage goes transparent a bit (showing the red underneath in this example).

You can also see that it may end up showing the wrong source! I hadn't noticed that in my earlier testing because I had source and sourceSize in a different order in the code.

If sourceSize is listed first (and thus changes first when isLandscape does), the right source always gets displayed (though you still see red bleed through). But if sourceSize is listed second (as it is in crossfade.qml), you get red bleed through AND the wrong source may be displayed after a source change.