PDA

View Full Version : How to update model when QHeaderView drags and drops column internally(QTableWidget)?



BryanTriana
3rd February 2018, 03:19
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?