How do I Qstring the child's sdout from Kprocess??

Harald Fernengel harry at kdevelop.org
Mon Mar 18 16:51:03 UTC 2002


Hi,

> I am wondering if someone can submit a snippit of code to show me an
> example of how I can get the output of a child process, running from
> KProcess, into a Qstring for further use.

Just look how we do it for the tools in the "Tools" menu in KDevelop. 
Basically you just have to connect the Signal receivedStdout (and Stderr if 
you want to log error messages).

Best Regards,
Harry




More information about the KDevelop-devel mailing list