[Qt-interest] Error encountered while using void setStandardOutputProcess ( QProcess * destination )
Thiago Macieira
thiago.macieira at trolltech.com
Tue Jul 21 20:23:09 CEST 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090721/677957b6/attachment.bin
More information about the Qt-interest-old
mailing list