[Qt-interest] how to capture the QProcess output?

Muthulingam Ammaiappan muthulingam.a at gmail.com
Tue Sep 27 13:23:25 CEST 2011


Hi Friends,

i wanted to capture the QProcess output and show....

here is the code snippet ....

*QString svnprogram = "./bin/svn.exe";*

*    QProcess *proc1 = new QProcess( this );*

*    proc1->setWorkingDirectory(workingdirpath);*

*    proc1->startDetached(svnprogram,arguments,workingdirpath);*

*    proc1->waitForFinished();*

*    //    proc1->terminate();*

*    QByteArray barray = proc1->readAll();*

*    QString outstr(barray);*

*    qDebug()<<outstr<<endl;*


here svn.exe is called and it works fine... but it did not show the output
in qDebug()...

can anyone please help me to fix this problem..


Thanks & Regards,
Muthu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110927/56de950b/attachment.html 


More information about the Qt-interest-old mailing list