On Sun, Jul 1, 2012 at 9:44 AM, Phil <[email protected]> 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 > [email protected] > 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 interleaved). - Orgad
_______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
