[Qt-creator] Qt and bash scripts

Orgad and Raizel Shaneh orgads at gmail.com
Sun Jul 1 10:07:34 CEST 2012


On Sun, Jul 1, 2012 at 10:45 AM, Phil <phil_lor at bigpond.com> wrote:

> On 01/07/12 17:20, Orgad and Raizel Shaneh wrote:
>
>>
>> You probably want also standard error.
>> QByteArray array = myProcess.**readAllStandardOutput() +
>> myProcess.**readAllStandardError() (note that the outputs will NOT be
>> interleaved).
>>
>>
> Thanks Orgad,
>
> I must need something else as well because the size of QBtyeArray is
> always zero.
>
> I was looking for a string or a string list the contains the output of the
> script.
>
> As an example, say I executed "ls" then I'd like a string to contain the
> file names that ls found.
>
> --
> Regards,
> Phil
>

Did you call myProcess.start()?

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120701/fc29f31a/attachment.html>


More information about the Qt-creator mailing list