[Qt-interest] concurrent-run of a static function
Andre Somers
andre at familiesomers.nl
Sun May 16 19:47:22 CEST 2010
Op 14-5-2010 16:22, Gabriele Kahlout schreef:
> The documentation shows how to execute async. a member or helper
> function. What about a static function, can it also be executed async.?
Yes, of course it can.
> If so how?
>
If passing a functionpointer to your static function (AFAIK you can do
that to a static class member function, which is what I think you mean)
does not work, you could use a simple functor. That is also in the
QtConcurrent documentation.
André
More information about the Qt-interest-old
mailing list