Re: [Qt-creator] Qt and bash scripts

2012-07-01 Thread Orgad and Raizel Shaneh
On Sun, Jul 1, 2012 at 11:56 AM, Phil 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; > >myProce

Re: [Qt-creator] Qt and bash scripts

2012-07-01 Thread Phil
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.rea

Re: [Qt-creator] Qt and bash scripts

2012-07-01 Thread Orgad and Raizel Shaneh
On Sun, Jul 1, 2012 at 10:45 AM, Phil 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). >>

Re: [Qt-creator] Qt and bash scripts

2012-07-01 Thread Phil
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 th

Re: [Qt-creator] Qt and bash scripts

2012-07-01 Thread Orgad and Raizel Shaneh
On Sun, Jul 1, 2012 at 9:44 AM, Phil wrote: > Thank you for reading this. > > I have a bash script that I start with QProcess which runs correctly. > What I'd like to know is how do I have the text that the script > generates appear in a dialog window instead of on the console screen. > > I thoug

[Qt-creator] Qt and bash scripts

2012-06-30 Thread Phil
Thank you for reading this. I have a bash script that I start with QProcess which runs correctly. What I'd like to know is how do I have the text that the script generates appear in a dialog window instead of on the console screen. I thought this might have been the answer but its not. QByteAr