[Qt-interest] About QProcess :How to read stdoutput realtime?
chandrasekar wagmare
sekarwagmare at gmail.com
Tue May 5 12:04:29 CEST 2009
Andreas Pakulat is absolutly right ... i faced the same problem ...
On Tue, May 5, 2009 at 3:26 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> On 05.05.09 14:43:00, Princy K. V. wrote:
> > Hi,
> >
> > Thanks for ur reply.
> >
> > But slot is not invoked when I used these signals
> > readyReadStandardError () & readyReadStandardOutput (
>
> Then either your connect call is wrong, or the process you're starting
> doesn't flush its buffers properly.
>
> > ..so I used following code snippets, this consumes lot of
> > time..sometimes not getting desired output..
>
> With that code you won't ever get the output as soon as the process
> produces it because you're waiting for the process to finish its execution
> before anything happens. waitForFinish is a blocking method.
>
> The only way to achieve what you want is using the readyRead signals and
> making sure the process you start properly flushes its buffers.
>
> Andreas
>
> --
> You are dishonest, but never to the point of hurting a friend.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090505/383d89b9/attachment.html
More information about the Qt-interest-old
mailing list