I use QTableWidget, and when the user clicks on a specific row, I use this index to perform some kind of operation. I also enabled sorting using setSortEnable, so when I sort it by clicking on the title, all row indices change, but I need the previous index, what should I do?
source share