title: how to pass a scoped pointer rather than a this pointer?
body: <p>I have two classes. In the class <code>A</code> constructor, I am calling the constructor of class <code>B</code>. However, while creating class <code>B</code> object, I want to pass the QSCOPED pointer of the class <code>A</code> object. In short, instead of this pointer, I want to pass the QSCOPED pointer. How can I do so?</p>
  
  <pre><code>class B;
  class A
  {
  
   class A();
  
  };
  
  A::A()
  {
    QScopedPointer&lt;B&gt; m_p_B( new B(this));
  }
  </code></pre>
  
  <p>My requirement is that instead of passing <code>this</code> pointer, I want to pass the QSCOPED pointer of the class <code>A</code>. Basically a QSCOPED pointer of <code>this</code> pointer. How can I do so?</p>