[Qt-interest] how to capture the QProcess output?
Donal O'Connor
donaloconnor at gmail.com
Tue Sep 27 13:28:43 CEST 2011
Haven't used QProcess all that much before but maybe you should set the read
channel...
proc1->setReadChannel(QProcess::StandardOutput);
On Tue, Sep 27, 2011 at 12:23 PM, Muthulingam Ammaiappan <
muthulingam.a at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110927/305c376e/attachment.html
More information about the Qt-interest-old
mailing list