Hii Forum,
I'm using QProcess to execute some cmd GIT
I tried :
process.start("git pull origin master");
process.start("git pull origin master");
To copy to clipboard, switch view to plain text mode
How do I know if the operation is OK or NOT ??
I can get the response :
if(process.waitForFinished())
{
process.waitForReadyRead(1000);
qDebug() << "read output" << process.readAllStandardOutput();
pullOk = true;
}
if(process.waitForFinished())
{
process.waitForReadyRead(1000);
qDebug() << "read output" << process.readAllStandardOutput();
pullOk = true;
}
To copy to clipboard, switch view to plain text mode
I tried to use a boolean pullOK, but I didn't find a methode (QProcess) ...
I have to know the result of the operation ([B] true [/ B] or [B] false [/ B]) for treatment after
Regards,
Bookmarks