Hi to all!
I would kindly need some help. I have, for instance, two classes:
Class A:
include "classb.h"
class A
{
public:
....
}
include "classb.h"
class A
{
public:
....
}
To copy to clipboard, switch view to plain text mode
and class b:
include "classa.h"
class B
{
QPointer<class a> m_pPointerToA;
}
include "classa.h"
class B
{
QPointer<class a> m_pPointerToA;
}
To copy to clipboard, switch view to plain text mode
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??
Bookmarks