|
Qt 4: Returning a QFuture with multiple items
Hi
Does anyone know if it's possible to somehow use the Qt 4 threading API to return a custom QFuture? My scenario is this: I have a GUI that displays a couple of lists of strings, but the code that generates the lists involves multiple hard-drive reads, some processing, etc., so the GUI tends to lag a bit during list generation.
The only custom feature that I've been able to find is QtConcurrent::run(), which just wraps a normal return type in a single-item QFuture. I'd like to be able to return the items of the list as they are generated, but I can't seem to find any documentation on doing so (Google, this forum, Qt 4 docs).
Thanks,
Syd
|