Results 1 to 2 of 2

Thread: QProcess and Interaction Between 2 QT Apps

  1. #1
    Join Date
    Aug 2010
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QProcess and Interaction Between 2 QT Apps

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QProcess and Interaction Between 2 QT Apps

    You can use dbus for example or shared memory.
    See the Qt documentation:
    http://doc.qt.nokia.com/4.7-snapshot/ipc.html

  3. The following user says thank you to tbscope for this useful post:

    sam_1802 (24th August 2010)

Similar Threads

  1. UI Interaction gone!
    By zgulser in forum Qt Programming
    Replies: 3
    Last Post: 15th May 2010, 12:08
  2. QML interaction with C++ (not only signals & slots)
    By Palmik in forum Qt Programming
    Replies: 1
    Last Post: 1st February 2010, 20:32
  3. Replies: 0
    Last Post: 26th June 2009, 17:53
  4. Qt interaction with X11
    By qwakaw in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2008, 20:17
  5. QGraphicsTextItem bug on mouse interaction?
    By mooreaa in forum Qt Programming
    Replies: 3
    Last Post: 4th July 2008, 07:29

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.