PDA

View Full Version : QTableView select a whole row?



qlands
22nd August 2011, 08:46
Hi,

In a QTableView how can I select a whole row for a given index? Or how can I highlight a set of indexes?

If it is with QItemSelectionModel how can I make it to select the whole row?

Thanks a lot!
Carlos.

cincirin
22nd August 2011, 11:22
See QAbstractItemView::SelectionBehavior (http://doc.qt.nokia.com/latest/qabstractitemview.html#SelectionBehavior-enum). You can use
QAbstractItemView::SelectRows