title: PyQt Get cell from TableView with header label
body: <p>I currently load the results of an SQL query into a TableView.</p>
  
  <pre><code>self.projectModel = QSqlQueryModel()
  self.projectModel.setQuery(sql,db)
  </code></pre>
  
  <p>I then need to select a specific cell based on the header label (geometry). This column will move position depending on the different table that is search.</p>
  
  <p>When the user clicks anywhere on the row (NOT the cell of geometry column) I would like to select the geometry column cell.</p>
  
  <p>At the moment I have a this associated with the tableView</p>
  
  <pre><code>self.dlg.tableView.clicked.connect(self.cellClicked)
  </code></pre>
  
  <p>And in that function I have</p>
  
  <pre><code>row = self.projectModel.currentIndex()
  </code></pre>
  
  <p>If I use QTableView.model(row, column) to select the index, I have to speciify the row and column number. However, this would vary so I would want to do QTableView.model(row, 'geometry') however the model expects integers.</p>
  
  <p>Any solutions?</p>
  
  <p>thanks</p>