1 2 3 4
while (!futureWatcher.isFinished()) { QCoreApplication::processEvents(); // let signal/slot handling happen respond(QString()); }