[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()
> Qt-creator mailing list
> Qt-creator at qt-project.org
You probably want also standard error.
QByteArray array = myProcess.readAllStandardOutput() +
myProcess.readAllStandardError() (note that the outputs will NOT be
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qt-creator