title: QlistView setCurrentIndex() not working
body: <p>I am facing a problem with a QListView component.</p>
  
  <p>I created a simple form with a listview and a tableview.
  Then I put this code, both widgets populate with the data model as I want:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>QSqlQueryModel * modela = new QSqlQueryModel();
  QSqlQueryModel * modelb = new QSqlQueryModel();
  
  [...]
  
  ui-&gt;listView-&gt;setModel(modela);
  ui-&gt;tableView-&gt;setModel(modelb);
  
  [...]
  
  void MyWindow::on_listView_clicked(const QModelIndex &amp;index)
  {
   ui-&gt;tableView-&gt;setCurrentIndex(ui-&gt;listView-&gt;currentIndex());
  }
  
  void MyWindow::on_tableView_clicked(const QModelIndex &amp;index)
  {
   ui-&gt;listView-&gt;setCurrentIndex(ui-&gt;tableView-&gt;currentIndex()); 
   // FAILS, does not react...  
  }
  </code></pre>
  
  <p>The first slot (when I click any item in the listview widget) works as expected, it automatically selects the corresponding item in the tableview widget, but the second case does not work, it just does not select any item in the listview...</p>
  
  <p>What I want is that whatever item the user clicks in the tableview gets selected in the listview.</p>
  
  <p>Is it possible?
  I tried hard, looking for examples and the official qt documentation, but I don't find the right way to do (also tried to connect with signal/slots, but I don't know how to exactly connect both widgets).</p>
  
  <p>Thanks in advance.</p>