Results 1 to 4 of 4

Thread: Can we have IPC mechanism ?

  1. #1
    Join Date
    Mar 2006
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Can we have IPC mechanism ?

    Hi All

    I have two classes named first and second, Both are separate classes. from these two classes we can go to class Three through one common control we created already. But the problem is how to go back to previous class from this current classe either it should be class first or class second.


    class first
    -> class Three
    class second
    (?) <- class Three

    Help me to solve this problem. We should not use Global varibles here.
    Is there any IPC mechanism here to solve this problem

    Warm regards
    vijay

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can we have IPC mechanism ?

    use signals and slot.

    Connect a signal emitted by the third class to a slot in both first and second class.

  3. #3
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Can we have IPC mechanism ?

    or pass pointers..

    p.s. i have premonition that we not have actually understanding what you want to do
    Last edited by zlatko; 3rd May 2006 at 11:17.
    a life without programming is like an empty bottle

  4. #4
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Cool Re: Can we have IPC mechanism ?

    try looking here too...you may find something useful!!

    http://www.qtcentre.org/forum/showth...als+slots+apps

Similar Threads

  1. can a single statement work in signal/slot mechanism
    By salmanmanekia in forum Qt Programming
    Replies: 1
    Last Post: 8th August 2008, 08:24
  2. The threaded signal/slot mechanism
    By xbtl in forum Newbie
    Replies: 1
    Last Post: 30th March 2008, 00:07
  3. Magic of Virtual Mechanism in C++
    By joseph in forum General Programming
    Replies: 2
    Last Post: 21st January 2008, 13:22
  4. IO Control Mechanism (Hardware Data Access)
    By rud_1023 in forum General Programming
    Replies: 2
    Last Post: 23rd October 2006, 12:50
  5. Replies: 4
    Last Post: 23rd January 2006, 16:51

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.