>
> I am not sure how your initial project looks, but for the code you sent, I
> would suggest a different approach:
>

Yes, I know about this approach, but unfortunately I can not use it - at
least I see no chance in my setting.

To elaborate a little: In reality Worker has a database connection which is
kept alive/open all the time and I have to use it in doHeavyStuff() - as an
additional constrained I need to use the connection from the same thread I
created it. Since QtConcurrent::run uses random threads I would have to
connect to the database for every single function call, pass connection
details etc. This was the reason I started to experiment with
QFutureInterface :)

Thanks!
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to