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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany
Accepted Solution

Download pictures on a separate thread?

I am using http://supportforums.blackberry.com/t5/Cascades-Development/Download-Images-Dynamically/m-p/1927137#...

successfully, but it seems that everything is done on the event thread, as the UI is not created before all of the images (12 atm, but can be more) are downloaded.

 

How would i move the download into another thread with Qt? Is there an executor queue that would be appropriate to use?

And do I have to get back to the event thread later on, like invokeLater in bbjava?

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Download pictures on a separate thread?

Just answering my own question:

There is a simple mechanism, it is QtConcurrent
http://doc.qt.digia.com/stable/qtconcurrentrun.html
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.