it's a problem of an incorrectly setup buffering method... and
you won't be able to solve this from within your calling program.
Either "patch" the program you are calling to use line buffering --
setlinebuf(stdout) -- or use fflush(stdout) every now and then in this
program. If you can't do this, then there's no way to solve it.
It's NOT a problem of QProcess or anything you could solve by any trickery
here... I have similar issues with some of the programs that I call from some
of my apps and there's no way around it (at least no platform independent
one).
ex: i am using linux to run an external system call glxgears in QProcess and i get output after ten minutes only or when the buffer filled completly ..
i try this one "glxgears | less" and find the problem in buffer flush
Bookmarks