Quote Originally Posted by dolphins View Post
the external fortran program will take several hours on outputting 100 data files, I think I

will kill the fortran program when I have found errors in first 10 data files, that's to say, the

fortran program process have not finish, how to terminate the fortran process?
Since terminate() has no effect, you might have to kill() it. Earlier the situation was kind of problematic since you were commanding the process from multiple threads but it should work fine after you do the proposed changes.

By the way, I want to know how to display terminal characters in QLabal or QEditin in real time ?
QProcess emits readyReadStandardError() and/or readyReadStandardOutput() when there is something available to read.