PDA

View Full Version : Changing QTableView column display order



scarleton
14th October 2010, 01:08
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.

scarleton
17th October 2010, 16:00
I take it that this is not possible?

tbscope
17th October 2010, 17:29
Try using a proxy model.

ChrisW67
18th October 2010, 00:04
Simple column order and visibility is a function of the view: QHeaderView::moveSection() and QHeaderView::hideSection()