[Qt-creator] Qt and bash scripts

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

On Sun, Jul 1, 2012 at 9:44 AM, Phil <phil_lor at bigpond.com> 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 thought this might have been the answer but its not.
> QByteArray array = myProcess.readAllStandardOutput()
> --
> Regards,
> Phil
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

You probably want also standard error.
QByteArray array = myProcess.readAllStandardOutput() +
myProcess.readAllStandardError() (note that the outputs will NOT be

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

More information about the Qt-creator mailing list