title: QObject::connect local pointer variable
body: <p>I need to use obj object inside SLOT function. I can pass obj with [<code>this</code>] in lambda.</p>
  <p>1.But need to know if SLOT will keep a pointer variable to obj after
  <code>newObjptr</code> went out of scope?</p>
  <p>2.Will work until <code>newObjptr</code> location re-used at runtime?</p>
  <pre><code>Object* obj = new Object(); // global object
  
  void function()
  {
     Object* newObjptr = obj;
     QObject::connect(sender, signal, [newObjptr](){
  
        //need to use newObjptr here. Will this fails??
  });
  }
  </code></pre>