QtableWidget selection with no hist
-
when one cell of qtablewidget is selected, it is highlighted, that is correct. But when I click on the empty area of the qtablewidget, the highlighted color is gone. And guess what, the previous cell still remains selected. Is there a solution to make the highlighting to persist even if i click on the empty area of table?
Click on a row:
!http://i58.tinypic.com/1z3nnsi.png(mouse on)!
Click on the empty area:
!http://i62.tinypic.com/n2d3zc.png(mouse on)! -
The previous cell does not remain selected. It might remain the current cell but that's a different thing.
Try:
@
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
tableView->setSelectionMode(QAbstractItemView::MultiSelection);
@