[Interest] QtConcurrent::map with a member function and a list of pointers

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Thu Sep 26 00:34:35 CEST 2013


Dear all,

I have a list of pointers : QList<MyClass*> list;

MyClass has a load() function

Now I would like to call something like QtConcurrent::map(list,
&Myclass::load), but this does not work, as it would with a list of Myclass
object instead of pointers.

Is there any way to make this work in one line without a wrapper?


Thanks,

Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130926/6507f392/attachment.html>


More information about the Interest mailing list