Here is the situation. Object A has a B and B has a C (A -> B -> C).
As far as I understand its something like -
class A
{
B objB;
};
class B
{
C objC;
}
class C
{
}
class A
{
B objB;
};
class B
{
C objC;
}
class C
{
}
To copy to clipboard, switch view to plain text mode
If thats the case, you need to provide a function in B to return objC. say C* B::getObjC()
Then in class A or whereever you can connect
connect(objB->getObjC(), SIGNAL(), this, SLOT());
connect(objA->getObjB()->getObjC(), SIGNAL(), objA, SLOT());
connect(objB->getObjC(), SIGNAL(), this, SLOT());
connect(objA->getObjB()->getObjC(), SIGNAL(), objA, SLOT());
To copy to clipboard, switch view to plain text mode
If above is not ur required hierarchy, please mention with class structure.
Bookmarks