On Sun, Jul 1, 2012 at 11:56 AM, Phil <[email protected]> wrote:

> On 01/07/12 18:07, Orgad and Raizel Shaneh wrote:
>
>
>> Did you call myProcess.start()?
>>
>>
> I've just realised that I've been sending my question to the wrong list.
> Anyway Orgad this is what I've done.
>
>    QProcess myProcess;
>
>    myProcess.startDetached("ls");
>
>    QByteArray array = myProcess.**readAllStandardOutput();
>
>    qDebug() << "array = " << array;
>
> --
> Regards,
> Phil
>

startDetached starts the process externally. You don't have any access to
its output. You should use start.

- Orgad
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to