[Qt-interest] Problem using QtConcurrentRun

Thomas Dähling t.daehling at googlemail.com
Wed Jul 7 00:26:05 CEST 2010


You probably want to make that (JC::dynx_start) since dynx_start is a
class function.

2010/7/6 yogesh upreti <yogesh.upreti at gmail.com>:
> Hallo Group,
> I have problem using QtConcurrent.
> This a part of my code (JC.cpp, which is defining the ui class JC):
> #include <QFuture>
> #include <QFutureWatcher>
> #include <QtConcurrentRun>
> int JC::startJobs()
> {
>             QFuture<void> f1 = QtConcurrent::run(dynx_start);
>             f1.waitForFinished();
> }
> void JC::dynx_start(QString dir)
> {
>             some work.....(some loop to keep busy for 2-3 sec)
> }
> But I get an error while compiling this program:
> JC.cpp: error: no matching function for call to 'run(<unresolved overloaded
> function type>)'
> I am using Nokia Qt Creator 1.3.1 with Qt 4.6.
> What I have to include more in this code??? am I missing something?
> Thanks in Advance
> Yogesh Upreti
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>




More information about the Qt-interest-old mailing list