Quote Originally Posted by stefanadelbert View Post
I have a custom model (inherited from QAbstractListModel) and use a QTableView to view the data. I would like to be able to reorder the columns by dragging and dropping them.
If you want the column (row) display order to be changeable by drag and drop of the column (row) headers then you need to look at QHeaderView::setMovable(). Wysota's suggestion is to do with moving data about within the model underlying the view (using drag and drop on the view).