[Qt-interest] how to use QFutureWatcher

Konstantin Wirz kwirz at wessel-hydraulik.de
Thu Jul 2 10:52:21 CEST 2009


Hi all !

my problem:

int someFunc(parameter);
QFuture<int> future;
QFutureWatcher<int> watcher;

future=QtConcurrent::run(&someFunc,parameter);
watcher.setFuture(future);
...
...
...
if(!watcher.isFinished())
     watcher.waitForFinished();
watcher.isFinished();	// it returns false !!!! why ?

Is that a bug in Qt ?

Thanks

Konstantin





More information about the Qt-interest-old mailing list