PDA

View Full Version : QTreeWidget Single Column Sort Disable



craigjameshamilton
21st April 2008, 03:11
Hi, I was wondering if it is possible to disable the the sorting of specific columns in a QTreeWidget? If so, how do you do it? If not, what is the most appropriate widget to use, bearing in mind we need to be able to expand/collapse items?

Thanks for any help.

wysota
21st April 2008, 08:08
I think the easiest way would be to apply an event filter on the header and intercept and reject all mouse clicking on respective sections of the header.