title: cannot connect QMetaMethod with lambda
body: <p>I have a base class Binded settings to bind property in it with given widgets, like LineEdit in example. I stuck with connecting signals and slot. As i see it's the same as provided code in answer on <a href="https://stackoverflow.com/questions/2799412/how-to-use-qmetamethod-with-qobjectconnect">How to use QMetaMethod with QObject::connect</a>
                                         ^</p>
  
  <pre><code>class BindedSettings: public QObject
  {
      Q_OBJECT
  public:
  bool bindWtToProp(QLineEdit* targetWt, const char* propertyName);
  bool stringFromVariant(const QVariant&amp; val, QString&amp; result){...}
  }
  </code></pre>
  
  <p>in cpp:</p>
  
  <pre><code>bool BindedSettings::bindWtToProp(QLineEdit *targetWt, const char *propertyName)
  {
      QLineEdit* le = targetWt;
      QMetaProperty mp = metaObject()-&gt;property(metaObject()-&gt;indexOfProperty(propertyName));
  
      //connecting property notifiedSignal with reader lambda
      QMetaMethod signal = mp.notifySignal();
      connect(this, signal, this, [=](){
      }); //reader
      return true;
  }
  </code></pre>
  
  <p>I have some classic connections(without qmetamethod) in the same function, but here what i get is </p>
  
  <blockquote>
    <p>C:\Projects\some\settings.cpp:279: error: no
    matching function for call to
    'BindedSettings::connect(BindedSettings*, QMetaMethod&amp;,
    BindedSettings*, BindedSettings::bindWtToProp(QLineEdit*, const
    char*)::)'
         connect(this, signal, this, ={});</p>
  </blockquote>