StatusMessage* message = new StatusMessage(this);//Создание того самого диалогаmessage->show();QProcess* process = new QProcess(this);process->execute(ext_program);while(process->state()!=QProcess::NotRunning){qApp->processEvents();}
C++ (Qt)void QProcess::finished(int exitCode, QProcess::ExitStatus exitStatus)