PDA

View Full Version : Catch a row selection event in QTableView



Windsoarer
2nd March 2009, 21:51
Hello Gurus,

Does anyone know how to catch a row selection event in a QTableView ?

The idea is that the clicked() and pressed() signals are emitted for a cell selection, but no such signal seems to exist for a a row selection, i.e. when the user clicks on the row number on the left side of the table.

Any clues ?

Thanks

caduel
2nd March 2009, 23:44
have a look at QAbstractItemView::selectionModel(), QAbstractItemView::selectionChanged(), QItemSelectionModel, QItemSelectionModel::selectionChanged()

HTH