Hi.
I have the qt 4.5.2.
I have included QtConcurrent (with #include <QtConcurrent>).
When I try to compile, I have this error:
[...]: error: QtConcurrent: No such file or directory
Why?
Thanks
Bye
Hi.
I have the qt 4.5.2.
I have included QtConcurrent (with #include <QtConcurrent>).
When I try to compile, I have this error:
[...]: error: QtConcurrent: No such file or directory
Why?
Thanks
Bye
Yes, I do.
CONFIG += exceptions
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += [...]
FORMS += [...]
SOURCES += [...]
Could you prepare a minimal compilable project (.pro, .cpp, .h) reproducing the problem? Also how did you install Qt? How do you compile your project?
BTW. I was asking if you actually have the file on your disk, not if you have an include statement in your project.
This example works.
I changed my code and now I have this error:
[...]fileslist.cpp:163: error: no matching function for call to ‘mapped(QString&, <unresolved overloaded function type>)’
This is the row:
imageScaling->setFuture(QtConcurrent::mapped(path, scale));
Please provide a minimal (almost compilable) example reproducing the problem.
At least on my system (Debian with Qt 4.4.3) there is no QtConcurrent header, there are these: QtConcurrentFilter, QtConcurrentMap, QtConcurrentRun.
Doing #include <QtConcurrentMap> should get you the QtConcurrent::mapped function.
I face the same error. I changed it to #include <QtConcurrent/QtConcurrent>. The problem is solved.
Bookmarks