I have two classes. In the class A constructor, I am calling the constructor of class B. However, while creating class B object, I want to pass the QSCOPED pointer of the class A object. In short, instead of this pointer, I want to pass the QSCOPED pointer. How can I do so?
class B;
class A
{
class A();
};
A::A()
{
QScopedPointer<B> m_p_B( new B(this));
}
My requirement is that instead of passing this pointer, I want to pass the QSCOPED pointer of the class A. Basically a QSCOPED pointer of this pointer. How can I do so?