PDA

View Full Version : Can we have IPC mechanism ?



vijay anandh
3rd May 2006, 06:20
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

munna
3rd May 2006, 06:49
use signals and slot.

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

zlatko
3rd May 2006, 11:15
or pass pointers..:eek:

p.s. i have premonition that we not have actually understanding what you want to do :rolleyes:

nupul
3rd May 2006, 19:26
try looking here too...you may find something useful!!

http://www.qtcentre.org/forum/showthread.php?t=1707&highlight=signals+slots+apps