On Sep 1, 2010, at 1:36 PM, ext Jens Bache-Wiig wrote: > 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.
Shouldn't the destruction and instantiation of delegates be as transparent to the end-developer as possible? Perhaps a new state that would indicate "Cached" would be useful? Cheers, Henrik _______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
