[Qt-creator] Qt and bash scripts

Phil phil_lor at bigpond.com
Sun Jul 1 09:45:52 CEST 2012

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.


More information about the Qt-creator mailing list