PDA

View Full Version : qprocess



weixj2003ld
2nd August 2011, 04:07
Hi,guys,
I open a new .exe with QProcess.
I want get some result from the .exe,but find that the .exe be existed, the result can return.
Now,I want to get the real-time result of the .exe,that is,when I click the Apply button,the result can be return at the same time,but not at the time the .exe existed.

QString arguments;
arguments="my.exe ";
myprocess=new QProcess(this);
myprocess->start(arguments);

connect(myprocess, SIGNAL(readyReadStandardOutput()), this, SLOT(readOutput()));

tbscope
2nd August 2011, 16:41
existed
You mean exited or closed.


Now,I want to get the real-time result of the .exe,that is,when I click the Apply button,the result can be return at the same time
Stop for a moment and think this a little bit through.
What would need to happen for you to get that information?

You already have an application that posts a message to the standard output device when it is closed.
This way, you can get that information when the program has closed. What do you need to change in this program to get information before it is closed?