[Interest] ImageProvider Threading

md at rpzdesign.com md at rpzdesign.com
Fri Sep 18 08:57:46 CEST 2015


Thanks for the 5.6 doc link.

Could not find anything that talks about parallel loading.  But if you 
say it will provide parallel loading, what does the QML Image { } object 
display while the image is loading?

I may want to return with a standard "Loading image..." image for those 
images that are not found "slowly" in the background.

So what must be done is a way to cause Image { } to get refreshed later 
after they return a temporary image just for speed purposes.



On 9/18/2015 12:29 AM, Gunnar Roth wrote:
> Hi Mark,
> I think it is serial. In Qt 5.6 there will be a new
> QQuickAsyncImageProvider
> <http://doc-snapshots.qt.io/qt5-5.6/qquickasyncimageprovider.html> class, with
> it you can do parallel image loading/rendering.
> Regards,
> Gunnar Roth
> *Gesendet:* Freitag, 18. September 2015 um 02:29 Uhr
> *Von:* "mark diener" <rpzrpzrpz at gmail.com>
> *An:* "interest at qt-project.org" <interest at qt-project.org>
> *Betreff:* [Interest] ImageProvider Threading
> Hello List:
> When dealing with multi-threading, the docs say that QQuickImageProvider
> will load
> images in a separate low priority thread.
> As it reads in the docs:
> http://doc.qt.io/qt-5/qquickimageprovider.html#details
> "When this is enabled, the image request to the provider is run in a low
> priority thread, allowing image loading to be executed in the
> background, and reducing the performance impact on the user interface."
> Does anybody know if the requests are queued in a single low priority
> thread or the requests are made in parallel low priority threads?
> For queued, this means if we take a long time to return from
> requestPixMap( ) that all the other images will block waiting for each
> queued requestPixmap( ) call to complete.
> Who knows, parallel or serial requestPixmap( ) calls?
> Thanks,
> md
> _______________________________________________ Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

No spell checkers were harmed during the creation of this message.

More information about the Interest mailing list