[Qt-interest] External Process Issue

Srdjan Todorovic todorovic.s at googlemail.com
Thu Oct 1 11:28:38 CEST 2009


On 01/10/2009, Sujan Dasmahapatra <sujan.dasmahapatra at gmail.com> wrote:

> Now the process starts and stops waiting for the user to enter 1 or 2. How
> could I enter this value so that my process continues to run.
>
> Give me some idea !!

Hah. That reminds me of the Goau'ld. "Open the Stargate - I command
you!! Kree!!!"

> process->start(program);
> // Now the program runs but it stops as it needs the value 1 or 2  but how
> could I give this values from my application ??

There's something in the docs about sending and receiving STDIN and
STDOUT from a QProcess. Have a look at the docs, 4th paragraph into
the description of the class.

Srdjan



More information about the Qt-interest-old mailing list