PDA

View Full Version : QTreeWidget Column Reordering



jimc1200
7th January 2009, 22:42
The QTreeWidget allows reordering of columns (headers) by dragging them. Is there a way to disable this?

Another related question is , if these headers/columns are reordered how do you get the current sequence/order of the headers/columns?

Thanks in advance for any info you can provide.

wysota
8th January 2009, 08:51
QHeaderView::setMovable(false)
QHeaderView::logicalIndex() and QHeaderView::visualIndex()