QProcess
-
say
@
Qprocess process;
process.start("a.exe");
processa.waitforfinished(1000);
@
the above code waits 1 sec and the a.exe is not completly executing it is aborting at middle if i increased the time to 30 sec the a.exe is executing but if it takes less than 30 secs say 15 secs the gui is locking up (i.e, not respoinding) so ho can i wait exactly for the process to finishPlease rply
-
- Listen for the finished() signal, or
- process.waitForFinished(-1)
Read this: http://qt-project.org/doc/qt-5.0/qtcore/qprocess.html