Make process start block until process has finished

This commit is contained in:
Matti Viljanen 2020-11-15 22:18:11 +02:00
parent 6e85d46505
commit 53f831cee0

View file

@ -26,6 +26,8 @@ public:
//qDebug() << program + " " + args.join(" ");
QProcess::start(program, args);
QProcess::waitForStarted(1000);
QProcess::waitForFinished(1000);
}
Q_INVOKABLE QByteArray readAll() {