PDA

View Full Version : QProcess and Interaction Between 2 QT Apps



sam_1802
24th August 2010, 11:02
Hi,

I created an App which has a button and When I click it, it launches the second App using the QProcess->start() method. After that I use process->write() method to write some value. Now How do I read that value in the second App and use it. How can I get a pointer to the main process of App2.

Well the actual thing I'm planning to do is to create App1 with a button and on clicking it I want to modify some data in App2. So how can I accomplish this? What would be the classes that I need to refer to get this thing working.

Thanks in advance for your help.

Regards,
Sam

tbscope
24th August 2010, 11:08
You can use dbus for example or shared memory.
See the Qt documentation:
http://doc.qt.nokia.com/4.7-snapshot/ipc.html