title: Qt connect doesn't recognize with lambda expression
body: <p>I'm designed a <code>QTableWidget</code> with <code>QPushButton</code>, I would like to connect these buttons with a slot to hide some rows.</p>
  
  <p>I'm using a lambda expression to pass a number of a row. But the compiler doesn't recognized this expression :</p>
  
  <pre><code>connect(this-&gt;ui-&gt;tableWidget-&gt;cellWidget(i,0),&amp;QPushButton::clicked,[this,i]{hideRows(i);});
  </code></pre>
  
  <p>I have this error:</p>
  
  <pre><code>error: no matching function for call to 'SoftwareUdpater::MainWidget::connect(QWidget*, void (QAbstractButton::*)(bool), SoftwareUdpater::MainWidget::displayTable()::&lt;lambda(int)&gt;)'
  </code></pre>
  
  <ul>
  <li>The function <code>hideRows(int)</code> is declared as a function. And, as a slot, it doesn't work,</li>
  <li><code>CONFIG += c++11</code> is added in pro file,</li>
  <li>My class <code>MainWidget</code> inherits from <code>QWidget</code>,</li>
  <li><code>Q_OBJECT</code> is added in the header.</li>
  </ul>
  
  <p>So I don't udnerstand why <code>connect()</code> is not recognized by <em>Qt 5.9.1 MinGw 32bit</em>.</p>
  
  <p>Edit: <code>[this,i]()</code> instead of <code>[this](const int i)</code> for the lambda expression</p>