I've been trying to get QTableWidget to work with internal drag and drop from QHeaderView and visually everything seems to be working, but after rearranging columns the selection model still uses the same locations that were used before the drag and drop occurred. Is there a way to update the model after the columns are rearranged in QHeaderView?