Results 1 to 2 of 2

Thread: Qt IPC options & questions

  1. #1
    Join Date
    Nov 2007
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default Qt IPC options & questions

    Greetings.

    I have two different Qt gui based applications, lets call them app A and app B.

    App A spawns multiple B apps, and there needs to be two-way communication between them.
    App A needs to send ocasionally commands to app B, i wanted to use the QProcess stdin/stdout mechanism to achieve that.
    The B apps have to access frequently information in app A, i want to use QtSharedMemory for that (haven't tried it, so im just assuming at this point, that it will work).

    My question is twofold:
    1. I dont seem to get app B to receive anything on stdin. I set up things the following way:
    In app A:
    - create a process
    - start it
    - on a button pressed, i call a process.write("message\n")
    In B apps.
    - create a QFile
    - open it, using fd 0(stdin) and readonly mode
    - attach the file's readyRead signal to a custom slot

    The custom slot in question never gets called. What did i miss?

    2. I don't quite understand the concept of DBus, but can it be used in such a situation?
    If so, could someone direct me to some detailed explanations, and perhaps sample code (other than those in the Qt Assistant)?

    I appreciate your help, thank you.

  2. #2
    Join Date
    Nov 2007
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default Re: Qt IPC options & questions

    I would be very grateful if i could get an answer to question 1, even if someone doesn't have time for the rest.

    Thank you.

Similar Threads

  1. Handcoder's IDE for Qt
    By magland in forum Qt-based Software
    Replies: 55
    Last Post: 7th September 2007, 15:09
  2. Memory management questions (im new to Qt)
    By scarvenger in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2007, 07:41
  3. Zoom Options
    By Kapil in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2006, 11:19
  4. Qt related questions and thoughts about getting job
    By AlexKiriukha in forum General Discussion
    Replies: 4
    Last Post: 26th January 2006, 12:25
  5. A few questions about Qt/Win
    By Bojan in forum Installation and Deployment
    Replies: 3
    Last Post: 16th January 2006, 09:54

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.