Hi to all.
I'm developing a small program that get some info from a command line tool (clt) and elaborate it.
I'm using QProcess to start the clt and the signal readyReadStandardOutput() to execute the functin that read the std out of the clt.
it works but don't read the last line.
For example, if the clt write to out:
first pass ok
second pass ok
third pass failed
4th pass ok
5th pass failed
and the gui slot connected to readyReadStandardOutput is
f(){
QString strOut=Process->readLine();
QMessageBox::information(this,"aaa",strOut);
}
the program show only 4 pupups with the first 4 lines(the popup with "5th pass failed" is not showed) .
sometimes, there is a pause of 3-4 seconds between various output lines from the clt because some times it use the network to do the job.
i'm doing someting wrong?
Thanks for help, and sorry for english
...
EDIT: using qt 4.5.2 on windows xp
Bookmarks