Hello,

I have a QTableWidget which I can edit. After I add a new row in any location of the table, I would like this row be visible immediately and also be selected.

Now my selection mode is row selection, and singleSelection.

I tried to use clearSelection() to clear the previous selection and go to the right position. But it looks like, only the previous selection cell is cleared, the rest of the previous row is still in gray. And so on...

Anyone has an idea how to implement this? Thanks in advance.