PDA

View Full Version : from qt, how to external program has finished his job?



cic
9th November 2011, 16:17
hi, all.

I have linked an external program to my qt project, using QProcess.

because I need to use the result of this external program.

now the problem is how can my qt project be informed that this external program finishes his running and the result is ready?

thank you.

stampede
9th November 2011, 16:29
QProcess has finished() signal. You can also use readyReadStandardOutput() signal to be notified when your external app writes something to stdout - you can then read it with readAllStandardOutput() (see docs for more details).

cic
10th November 2011, 08:58
thank you stampede, it works :)