[Qt-interest] Problem with sending binary data to stdin of QProcess child. There's no QProcess::flush

Thiago Macieira thiago.macieira at trolltech.com
Mon Jan 12 08:36:11 CET 2009


Bart van Deenen wrote:
>#include <QtCore/QCoreApplication>
>#include <QProcess>
>int main(int argc, char *argv[]) {
>
>QCoreApplication a(argc, argv);
>QProcess process;
>process.flush();
>return a.exec();
>}

You want waitForBytesWritten().

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Software Engineer - Nokia, Qt Software
  Qt Software is hiring - ask me
      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/20090112/347e9c41/attachment.bin 


More information about the Qt-interest-old mailing list