PDA

View Full Version : Sending a shortcut to an exec managed by QProcess ?



Ti_Thom
10th April 2007, 15:08
Hello,
I would like to send some shortcuts (ex: CTRL+C) to a console application managed by QProcess.
Does anyone have an idea ?

marcel
10th April 2007, 18:31
Using QProcess? No, I doubt this is doable.
You'll have to obtain somehow a pointer to the QApplication instance( of the console app ), and post a key event to it's event queue.

Regards