title: Handling single click and double click separately in QTableWidget
body: <p>I have a <code>QTableWidget</code> widget in my application. I have to handle both single-click and double click mouse events separately in my application. Right now, only single-click slot is being called even when I double click on a cell. How do I handle them separately?</p>
  
  <p>The following is the code for the signal-slot connection:</p>
  
  <pre><code>connect(ui.tableWidget, SIGNAL(cellClicked(int, int)), this, SLOT(myCellClicked(int, int)));
  connect(ui.tableWidget, SIGNAL(itemDoubleClicked(QTableWidgetItem*)), this, SLOT(tableItemClicked(QTableWidgetItem*)));
  </code></pre>
  
  <p>Am I missing any other configuration here?</p>