Make process start block until process has finished
This commit is contained in:
parent
6e85d46505
commit
53f831cee0
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ public:
|
|||
|
||||
//qDebug() << program + " " + args.join(" ");
|
||||
QProcess::start(program, args);
|
||||
QProcess::waitForStarted(1000);
|
||||
QProcess::waitForFinished(1000);
|
||||
}
|
||||
|
||||
Q_INVOKABLE QByteArray readAll() {
|
||||
|
|
Loading…
Reference in a new issue