check whether a script exists by script name
-
@JonB
okay. and above code is okay? specifically, thewhile (!process.atEnd());
part.wrote on 2 Apr 2020, 18:58 last edited by JonB 4 Feb 2020, 18:59while (!process.atEnd());
Lord, no, I didn't look! That would occupy all CPU time for parent process!
If you want to do it synchronously that way you must at least use
waitForFinished()
, see the example & discussion at https://doc.qt.io/qt-5/qprocess.html#synchronous-process-api. It's not the best compared to asynchronous with signal/slot, but I haven't got time, again see the doc if you want to understand. -
while (!process.atEnd());
Lord, no, I didn't look! That would occupy all CPU time for parent process!
If you want to do it synchronously that way you must at least use
waitForFinished()
, see the example & discussion at https://doc.qt.io/qt-5/qprocess.html#synchronous-process-api. It's not the best compared to asynchronous with signal/slot, but I haven't got time, again see the doc if you want to understand.wrote on 2 Apr 2020, 19:15 last edited by@JonB
i see. thanks a lot
21/22