See the Handling selection of items section in the Qt Model/Views documentation.
In essence, what you need to use is your QTableView's selection model which has signals for when the selection changes in the table. You access the view's selection model via it's selectionModel() member function.