View Full Version : QProcess::setReadChannelMode() unknown ?

16th August 2006, 11:28
Hi, I currently work on a project in which I need to run an external application. this application is in command lines, so I'd like to get at the same time the standard output and the error output. To do this, the QProcess::setProcessChannelMode () method seemed the best to me, as it allows to "mix" both streams in one.

My issue is that the compilator doesn't recognize it :

main.cpp:50: error: 'class QProcess' has no member named 'setProcessChannelMode'

In case you need it, my config is : QT 4 Windows, Open Source Edition, compilator g++ 3.4.2

Could anybody help me ? Thanks in advance

PS : If you have any other idea to get both streams and display them chonologicaly, it is also good to me.

PPS : Please excuse any possible mistake in my language, English is not my daily language

16th August 2006, 11:36
It should be setReadChannelMode() not setProcessChannelMode().

16th August 2006, 11:36
http://doc.trolltech.com/4.1/qprocess.html#setReadChannelMode (http://doc.trolltech.com/4.1/qprocess.html#setReadChannelMode)

16th August 2006, 11:40
Oups, so silly ! I feel so ashamed not to have see that myself.... :crying: