[Qt-interest] Using QProcess

Thiago Macieira thiago.macieira at trolltech.com
Tue Dec 23 02:05:53 CET 2008


Ann Marie wrote:
>I am trying to use QProcess (QT 4.4 - Linux) to execute a bash script.
>
>I pass a couple of arguments to the script then echo the output.
>
>When I use readAll or readAllStandardOutput - it returns nothing.
>
>What am I doing wrong???

Without seeing the code you wrote, it's impossible to know for certain 
what your problem is.

So I'm going to take a guess here: you forgot to call waitForFinished().

-- 
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/20081223/e3bcc52a/attachment.bin 


More information about the Qt-interest-old mailing list