Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Regular Contributor
Posts: 60
Registered: ‎12-19-2012
My Device: BB10 Alpha B
My Carrier: SFR

Asynchronous load in ImageView (QML)

Hi ! 

 

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 ?

 

Thanks