[Qt-creator] Qt and bash scripts

Orgad and Raizel Shaneh orgads at gmail.com
Sun Jul 1 11:09:54 CEST 2012


On Sun, Jul 1, 2012 at 11:56 AM, Phil <phil_lor at bigpond.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120701/907f7e7b/attachment.html>


More information about the Qt-creator mailing list