title: Qt double click check left button mouse
body: <p>I need to run slot only on doubleClick with left button mouse, instead of both.</p>
  
  <pre><code>// this-&gt;myComponent is a QTableView
     connect(this -&gt; myComponent, SIGNAL (doubleClicked (const QModelIndex &amp; )), this,
    SLOT (performSomeAction(const QModelIndex &amp; )));
  </code></pre>
  
  <p>With this event, double click works in both cases, but needed only with left button click.
  How I can do it?</p>
  
  <pre><code>this -&gt; myComponent =&gt; QTableView
  </code></pre>