Хочу считать файл в другом потоке, используя QImageReader
QImageReader imgReader;
imgReader.setFileName("filename");
QImage *img = new QImage();
QFuture<QImage> future = QtConcurrent::run(imgReader, &QImageReader::read);
*img = future.result();
получаю:
../Qt/4.4.1/include/QtGui/../../src/gui/image/qimagereader.h: In constructor `QtConcurrent::StoredMemberFunctionCall0<T, Class>::StoredMemberFunctionCall0(T (Class::*)(), const Class&) [with T = QImage, Class = QImageReader]':
../Qt/4.4.1/include/QtCore/../../src/corelib/concurrent/qtconcurrentrun.h:169: instantiated from `QFuture<T> QtConcurrent::run(const Class&, T (Class::*)()) [with T = QImage, Class = QImageReader]'
image.cpp:53: instantiated from here
../Qt/4.4.1/include/QtGui/../../src/gui/image/qimagereader.h:133: error: `QImageReader::QImageReader(const QImageReader&)' is private
../Qt/4.4.1/include/QtCore/../../src/corelib/concurrent/qtconcurrentstoredfunctioncall.h:120: error: within this context
mingw32-make[1]: *** [debug/image.o] Error 1
Что я делаю не так?