[Qt-interest] Error encountered while using void setStandardOutputProcess ( QProcess * destination )
Chandru...
sekarwagmare at gmail.com
Wed Jul 22 07:01:03 CEST 2009
what error u are receiving running the recent code ...
On Wed, Jul 22, 2009 at 7:18 AM, Usman Ajmal <uzmanajmal at gmail.com> wrote:
> 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
>>
>>
>
> _______________________________________________
> 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/20090722/2f570e41/attachment.html
More information about the Qt-interest-old
mailing list