PDA

View Full Version : Output of QProcess - Git



Binary01
20th March 2017, 11:17
Hiii Forum

I have to read the output of QProcess with :
readAllStandardOutput();

My code :
if (!process.waitForStarted()) {
qDebug() << "Error : " << process.errorString();
return false;
}

if(process.waitForFinished(-1))
{
qDebug() << ">>> "+process.readAllStandardOutput();
}

The problem is : I can not read all the output

OUTPUT with Qt : Updating 14a89b0..e16c540

OUTPUT with the console :

Why readAllStandardOutput() can not read the rest of the output !

Regards;

jefftee
20th March 2017, 12:51
Is the text you are not albe to read written to stdout or stderr? My guess is the output you do get is written to stdout and the part that's missing is written to stderr... You can merge the channels and read all at once or you can read them separately.