title: Create an instance of QScopedPointer later
body: <p>For example here is my code</p>
  
  <pre><code>QScopedPointer&lt;QTimer&gt; timer2(new QTimer);
  </code></pre>
  
  <p>But I want to define </p>
  
  <pre><code>QScopedPointer&lt;QTimer&gt; timer2; 
  </code></pre>
  
  <p>in mainwindow.h and create an instance </p>
  
  <pre><code>timer2(new QTimer);
  </code></pre>
  
  <p>in the mainwindow.cpp</p>
  
  <p>How?</p>