Hi,

I'm using QItemSelectionModel and setting this in my QTableView. My QTableView has a number of rows, but in the fifth column of each row it has a QToolButton. I have set up a signal for when the user clicks the button and within that signal I have the following code :

Qt Code:
  1. QModelIndex s = m_pselectionModel->currentIndex();
To copy to clipboard, switch view to plain text mode 

Now I thought this would give me the row number for which the button that was clicked on actually resides in, but it doesn't, it only does this if I highlight one of the other columns within the QTableView. Is there a way of doing this?

Regards,
Steve