I have a QTableView with several columns. For column 1 I use a custom delegate. I set selection behavior as:
ui.tableView->setSelectionBehavior(QAbstractItemView::SelectRow s);
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.
Bookmarks