Qt : QProcess in a Loop

Qt : QProcess in a Loop

From my last post, I create a program how to use QProcess in our program. Now, I try to write a method how Qt : QProcess in a loop method. This problem show when I try to use QProcess in a loop. I have list of command line program (running from bash or konsole) and I want to running that all list command from Qt.

We can solve Qt : QProcess in loop problem with use void QProcess::finished ( int exitCode, QProcess::ExitStatus exitStatus )   [signal]. This signal is emitted when the process finishes. exitCode is the exit code of the process, and exitStatus is the exit status. After the process has finished. You can read the complete description from this function at Qt Documentation. This is my screenshot of simple program Qt : QProcess in a loop :

QProcess in a Loop
QProcess in a Loop

Continue reading