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

2013-09-25 Thread Thiago Macieira
On quinta-feira, 26 de setembro de 2013 00:34:35, Etienne Sandré-Chardonnal wrote: > Dear all, > > I have a list of pointers : QList 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

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

2013-09-25 Thread Etienne Sandré-Chardonnal
Dear all, I have a list of pointers : QList 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