12-20-2012 04:07 AM
I am using ImageView in QML to display... an image ! It is located on the filesystem. But as there are many of them to load it seems to block the thread when reading from disk.
In Qt, we had a perfect property for this :
asynchronous : bool
Specifies that images on the local filesystem should be loaded asynchronously in a separate thread. The default value is false, causing the user interface thread to block while the image is loaded. Setting asynchronous to true is useful where maintaining a responsive user interface is more desirable than having images immediately visible.
Note that this property is only valid for images read from the local filesystem. Images loaded via a network resource (e.g. HTTP) are always loaded asynchonously.
Well, as loading remote images in ImageView is not supported at this time (correct me if I am mistaken), I am afraid that it is not possible yet to load the images from local FS asynchronously. Can anybody confirm ?