[Qt-qml] Image Reload
warwick.allison at nokia.com
warwick.allison at nokia.com
Fri Aug 6 01:02:16 CEST 2010
> see any clean way to do this. I can append a '?' to the end of the
> current source and retry but then i'm not sure how caching will work.
The cleanest is probably adding this to your Image:
function reload() { var tmp=source; source=""; source=tmp; }
This works for the case of a failed image, but it will not invalidate the cache once a valid image is loaded.
> Would a slot, maybe reload(), be appropriate?
Yes, please create a bug report. It shouldn't go into 4.7.0 at this late stage though (since it can be implemented in QML as above), so it'll depend on versioning.
--
Warwick
More information about the Qt-qml
mailing list