python – Is it possible to retrieve the content of cells in a PyQt5 QTableWidget object and inject it into other cells?

I would like to modify a QTableWidget table, taking whole rows and moving them in place of other rows (reversing the position of the rows, in a way). All the attempts I made did not work. I give a minimal example, below, to illustrate what I want to do. The idea is to take the … Read more