I think is valid:
Qt Code:
  1. out->append(process.readAllStandardOutput());
To copy to clipboard, switch view to plain text mode 

I'm try create simple application when using QProcess class,
but I didn't receive output buffer.

Qt Code:
  1. //main.cpp
  2. #include <QApplication>
  3. #include "dialogimpl.h"
  4. //
  5. int main(int argc, char ** argv)
  6. {
  7. QApplication app( argc, argv );
  8. DialogImpl win;
  9. win.show();
  10. app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
  11. return app.exec();
  12. }
  13.  
  14. ///////////////////////////////////////////////////////////////////////////////////////////////////////
  15. // dialogimpl.cpp
  16. #include "dialogimpl.h"
  17. #include <QProcess>
  18. //
  19. DialogImpl::DialogImpl( QWidget * parent, Qt::WFlags f)
  20. : QDialog(parent, f)
  21. {
  22. setupUi(this);
  23. process = new QProcess(this);
  24. process->setReadChannel(QProcess::StandardOutput);
  25. connect(process, SIGNAL(readyReadStandardOutput()), this, SLOT(output()));
  26. connect(pushButton, SIGNAL(clicked()), this, SLOT(runcmd()));
  27. }
  28. //
  29. void DialogImpl::output()
  30. {
  31. textEdit->append((process->readAllStandardOutput()));
  32. }
  33. //
  34. void DialogImpl::runcmd()
  35. {
  36. process->start(lineEdit->text());
  37. }
  38.  
  39. ///////////////////////////////////////////////////////////////////////////////////////////////////////
  40. // dialogimpl.h
  41. #ifndef DIALOGIMPL_H
  42. #define DIALOGIMPL_H
  43. //
  44. #include "ui_dialog.h"
  45. //
  46. class QProcess;
  47.  
  48. class DialogImpl : public QDialog, public Ui::Dialog
  49. {
  50. Q_OBJECT
  51. public:
  52. DialogImpl( QWidget * parent = 0, Qt::WFlags f = 0 );
  53. private slots:
  54. void output();
  55. void runcmd();
  56. private:
  57. QProcess* process;
  58. };
  59. #endif
To copy to clipboard, switch view to plain text mode 

Where I was mistaken?