Re: [Interest] Compilation error with QtConcurrent::run

2014-12-10 Thread Constantin Makshin
I don't think the documentation on QtConcurrent::run() needs to be changed because this problem is not related/specific to Qt. On Dec 10, 2014 8:35 PM, "Juan Navarro" wrote: > I did it creating a typedef for the needed method: > > typedef bool (QImage::*QImageSaveFn)(const QString&, const char*,

Re: [Interest] Compilation error with QtConcurrent::run

2014-12-10 Thread Juan Navarro
I did it creating a typedef for the needed method: typedef bool (QImage::*QImageSaveFn)(const QString&, const char*, int) const; And then issuing just like the sample given in the wiki: static QImage image = IPROJECT.getOutputCompositionImage(); const QString fileName = "/tmp/w1.png"; const char

[Interest] Compilation error with QtConcurrent::run

2014-12-10 Thread Juan Navarro
I'm following this: http://qt-project.org/doc/qt-4.8/qtconcurrentrun.html But the given example for calling member functions doesn't work for at least one Qt class / method: bool QImage::save(const QString &fileName, const char* format=0, int quality=-1) const; The compiler cannot decide which of