PDA

View Full Version : Help with QTableView row selection



ScabrusMantra
13th April 2010, 21:15
I have a QTableView with several columns. For column 1 I use a custom delegate. I set selection behavior as:

ui.tableView->setSelectionBehavior(QAbstractItemView::SelectRows );

so that when cell is clicked the whole row is selected. This works ok if I click any cell, except for those belonging to a column 1 (where I use custom delegate). Can anyone suggest how this can be fixed? Is there something that needs to be added to the custom delegate to make selection work as I want? I googled this problem and I've seen someone mentioning similar issue, but no solution was suggested.

Any help would be greatly appreciated.

ScabrusMantra
13th April 2010, 22:44
Please, disregard this question. There was some custom code that was causing problem here.