[Qt-qml] The behavior of image status in ListView delegates
Jens Bache-Wiig
jens.bache-wiig at nokia.com
Wed Sep 1 13:36:41 CEST 2010
I have a ListView delegate that load images from a web source. This
usually takes some time on first load so I have a Spinner until
image.status == Image.Ready. If I then scroll the delegate out of view
and back again, the load is instantaneous but the image goes through the
same status sequence, even if it is already in the internal application
cache.
Is this intentional? Is there a simple way to tell the difference
between loading from cache and from a web source? My workaround is to
set state loaded the first time Ready state is seen, but this doesn't
feel very declarative. If I ignore the issue, my images animate every
time I scroll them in and out of view which is not really what I want.
----
Regards,
Jens
More information about the Qt-qml
mailing list