PDA

View Full Version : Changing column order in QTableView



Banjo
18th January 2008, 04:34
Hello
I am new to QT and would really appreciate help with the following.

I have a model with three columns, say a, b and c. I have multiple QTableViews of the model and would like a different column order in each - say c, b, a in one and b, a, c in the other.

Thanks

jpn
18th January 2008, 06:49
See

QTableView::horizontalHeader()
QHeaderView::moveSection()