> In my Qt application A,i wanna start process B(B is a program with
> But in qt's document,it seems that QProcess can not start console program.
> And ideas about this?
I don't think this is true. You can start any process using QProcess in
> Further more,even the process B is started by QProcess::start int A
> whithout console,i
> wanna read Stdout of B by QProcess::readStdOut.In B,i write strings to
> stdout by printf,but A reads nothing.But if i add fflush() after
> printf() in B,A get the right string. At this instance,must fflush() is
> called in B? If B is third party program,how to?
You can read the stdout of process B via QProcess, and you should also
write to the stdin of process B via QProcess. Process A's stdout has
nothing to do with process B's stdin.
Wu Yinghui, Freddie
Research & Development
Volume Interactions Pte Ltd
1 Kim Seng Promenade, #12-01
Great World City East Tower
Tel: +65 62226962 (Ext 216)
Fax: +65 62226215
Important: This message is intended for the recipient(s) addressed
above. It contains privileged and confidential information. If you are
not the intended recipient, please notify the sender immediately by
replying to this message and then delete it from your system. You must
not read, copy, use, or disseminate this communication in any form.