Pass a method to QtConcurrent::map
-
See my last update - adding
QT += concurrent
does not change anything as the project thinks configuration is not changing. -
Forcing rebuild does not change anything. The pro file looks like this now:
#------------------------------------------------- # # Project created by QtCreator 2016-04-18T13:54:41 # #------------------------------------------------- QT += core gui concurrent greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = MandelbrotQt TEMPLATE = app SOURCES += main.cpp\ newform.cpp \ helpers/fileHelper.cpp \ mandelbrot/mandelbrot.cpp HEADERS += newform.h \ helpers/fileHelper.h \ mandelbrot/mandelbrot.h \ ui_newForm.h FORMS += newform.ui LIBS += -lQt5Concurrent CONFIG += c++11
The linker is still complaining.
-
Forcing rebuild does not change anything. The pro file looks like this now:
#------------------------------------------------- # # Project created by QtCreator 2016-04-18T13:54:41 # #------------------------------------------------- QT += core gui concurrent greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = MandelbrotQt TEMPLATE = app SOURCES += main.cpp\ newform.cpp \ helpers/fileHelper.cpp \ mandelbrot/mandelbrot.cpp HEADERS += newform.h \ helpers/fileHelper.h \ mandelbrot/mandelbrot.h \ ui_newForm.h FORMS += newform.ui LIBS += -lQt5Concurrent CONFIG += c++11
The linker is still complaining.
@nulluse
It looks okay to me, with the only exception of this line:LIBS += -lQt5Concurrent
. You shouldn't need to pass that to the linker, adding theQT += concurrent
is enough (qmake
will generate the appropriate include files and linker switches).