I have a QMainWindow containing a QTableView as its centralwidget.
I populate this QTableView by setting a model (which is derived from QAbstractTableModel).
The selection behavior for the QTableView is set to QAbstractItemView::SelectRows. This means that if I click in a cell, the entire row is selected (and is highlighted).
I would like to be able to focus/highlight a row in the QTableView programatically. In other words, I would like to focus/highlight a row without the user clicking on it. How can this be done, do I 'fake' a click in a cell?