[Qt-interest] Does QProcess::readAllStandardOutput have a limit?
Christian Gagneraud
cgagneraud at techworks.ie
Thu Dec 2 20:42:21 CET 2010
On 12/02/2010 07:16 PM, Eric Clark wrote:
> What do you mean by soon? I am not receiving any more calls to my
> slot connected to the readyReadStandardOutput signal. The process
> that is running outputs a bunch of startup text and then goes into
> an infinite loop waiting to receive commands. I have waited a while
> (minutes) after the process was started and I do not receive any
> more signals that the standard output is ready to be read.
Have you tried the QIODevice::Unbuffered flag when you
setStandardOutputFile() in your sub-process?
It is possible that the output buffer is flushed/drained only when it
reach a certain water mark level, in that case one solution is to use
unbuffered output (with potential penalty on the performance), or
flush/drain your output yourself.
Chris
--
Christian Gagneraud,
Electronics and software engineer
TechWorks Marine Ltd
4a, Park Lane
Dun Laoghaire, Co Dublin
Ireland
Tel: + 353 1 2365990
Fax: + 353 1 2365992
Web: www.techworks.ie
More information about the Qt-interest-old
mailing list