MarkoSan
11th January 2008, 07:53
Hi to all!
I would kindly need some help. I have, for instance, two classes:
Class A:
include "classb.h"
class A
{
public:
....
}
and class b:
include "classa.h"
class B
{
QPointer<class a> m_pPointerToA;
}
The compiler does not compile this code and here is my question:
In the constructor of object A I create new object from class B. But, class B must remember it's caller pointer. Parent is remembered only in constructor. How do I save caller pointer in child constructor??
I would kindly need some help. I have, for instance, two classes:
Class A:
include "classb.h"
class A
{
public:
....
}
and class b:
include "classa.h"
class B
{
QPointer<class a> m_pPointerToA;
}
The compiler does not compile this code and here is my question:
In the constructor of object A I create new object from class B. But, class B must remember it's caller pointer. Parent is remembered only in constructor. How do I save caller pointer in child constructor??