Hello,

I have a QTableView with each cell being selectable individually, 4 columns and a runtime number of rows.
I wish to be able to mark 1 of the rows (exclusively of all others), in column 4.

I suppose there are different ways to do that, but let's say right clicking on the cell marks that cell (exclusively).
The marked cell then should show the string "Implied"

  1. How do I change the QTableView to handle the righ-click command?
  2. In terms of implementation, is there an easier way than "right-click" ?
  3. If T is the data type for those cells in the data model, that is currently translated to Qstring before display, would I add a member variable to my instance of QAbstractTableModel to hold which cell is marked?


Regards,