PDA

View Full Version : How can I capture the output of another program



franco.amato
18th July 2011, 03:14
Hi to all,
I would capture the output of an external program ( that print at shell ) in my qt app and print it in my text editor.
Is possible to do it with Qt?
Best Regards,
Franco

Santosh Reddy
18th July 2011, 04:56
Yes, it is possible in Qt. When you start a external program using QProcess, you can read and write to program using channels. Here read this (http://doc.qt.nokia.com/4.7/qprocess.html#communicating-via-channels)