Hi,
I am trying to read console output of a qt console app from a qt gui app.

Qt Code:
  1. void MainWindow::on_pushButton_clicked()
  2. {
  3. proc= new QProcess(this);
  4. connect(proc,SIGNAL(readyReadStandardOutput()),this,SLOT(readProcessOutput()));
  5. proc->setProcessChannelMode(QProcess::MergedChannels);
  6. proc->start("C:\\Users\\yg\\Documents\\processtest\\debug\\deployFiles.bat");
  7. }
  8. void MainWindow::readProcessOutput()
  9. {
  10. ui->textEdit->append(proc->readAllStandardOutput());
  11. }
To copy to clipboard, switch view to plain text mode 

I can read the output for "deployFiles.bat" app. But when i change the file to :
Qt Code:
  1. proc->start("C:\\Users\\yg\\Documents\\processtest\\debug\\DriverModbus.exe");
To copy to clipboard, switch view to plain text mode 

Nothing comes to standartoutput.
DriverModbus is a qt console app that uses qDebug() s to print data on its console.

https://dl.dropboxusercontent.com/u/...iverModbus.rar

What maybe the problem?

Thanks in advance...