Qprocess show stdoutput only on ending of excecution.
-
I have the same trouble. It's seems to happen when the end of line send by a process is only \n instead of \r\n for windows.....
-
I have the same trouble. It's seems to happen when the end of line send by a process is only \n instead of \r\n for windows.....
Also facing the same issues, ping works fine realtime, but the readyRead signal isnt getting triggered when theres a 'print' command on my custom executable. As everyone else, it gets triggered only after the process is completed.
@saran were you able to debug this problem eventually?
@jdascenzio does using \r \n solve this problem? It did not for me
-
Yes I realise this topic is old, but replying to it anyway as it's one of the first things that appear in google when you search this issue.
For anyone who hasn't resolved this there's a chance your application is buffering its stdout, and it's not a problem on the qt side.
I had this same issue, my logging functions writing to stdout in the application I was trying to get output from wouldn't show until the process had finished. It was resolved by flushing stdout.
In my case my c program log function would write to printf(), and at the end of those functions I needed to put fflush(stdout).