I have a model that is being used a number of different views. The order of the columns change based on the view. How do I go about changing the order of the columns?
P.S. Most of the columns are not actually displayed on any given view.
I have a model that is being used a number of different views. The order of the columns change based on the view. How do I go about changing the order of the columns?
P.S. Most of the columns are not actually displayed on any given view.
I take it that this is not possible?
Try using a proxy model.
Simple column order and visibility is a function of the view: QHeaderView::moveSection() and QHeaderView::hideSection()
Bookmarks