move qApp->processEvents() into setProgress