[Qt-interest] Error encountered while using void setStandardOutputProcess ( QProcess * destination )

Usman Ajmal uzmanajmal at gmail.com
Wed Jul 22 03:48:12 CEST 2009


I made the process1 a  pointer too and removed the processEvents too. Still
data is not transferring, not even on 127.0.0.1.

On Tue, Jul 21, 2009 at 11:23 PM, Thiago Macieira <
thiago.macieira at trolltech.com> wrote:

> Usman Ajmal wrote:
> >    QProcess process1;
> >    QProcess *process2 = new QProcess(parent);
> >    process1.setStandardOutputProcess(process2);
> >    QCoreApplication::processEvents();
> >    process1.start(command1);
> >    process2->start(command2, arguments);
> >}
>
> process1 goes out of scope at the }
>
> If you want it to live on, make sure it's a pointer.
>
> Also, that processEvents() makes no sense where it is.
>
> --
> 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/20090722/76312117/attachment.html 


More information about the Qt-interest-old mailing list