[Qt-interest] newbie:facing issues with readallstdoutput and QProcess

john doe thebiggestbangtheory at gmail.com
Mon May 4 23:59:51 CEST 2009


On Mon, May 4, 2009 at 12:14 PM, Thiago Macieira <
thiago.macieira at trolltech.com> wrote:

> Em Segunda-feira 04 Maio 2009, às 19:20:12, john doe escreveu:
> > Thanks for the answer :-), the problem is though if I try to run python
> -h,
> > I can see the output, but python --version won't work.!!!! I can't figure
> > out why a particular flag works and the other one does not!
>
> That's not a Qt issue. It's a Python issue:
>
> $ python -h >/dev/null
> $ python --version >/dev/null
> Python 2.6.1
>
> One option prints to stdout, the other option prints to stderr. It's up to
> you
> to determine which channel the information you're interested is in.
>
thanks a ton :-)

>
> Or, another option, is to use MergedChannels.
> --
> Thiago Macieira - thiago.macieira (AT) nokia.com
>  Senior Product Manager - Nokia, Qt Software
>     Sandakerveien 116, NO-0402 Oslo, Norway
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090504/eb82d763/attachment.html 


More information about the Qt-interest-old mailing list