[Qt-interest] setting header labels. Bug?

Roland Tollenaar rwatollenaar at gmail.com
Fri Feb 5 15:43:00 CET 2010


Hi,

I am nog managing to change the labels of a header of a qtreewidget item 
after the header has been set.

I have tried:

setHeaderLabels (used to initially set the labels)
setHeaderItem
headerItem (then changing the text in the returned item)

I am out of ideas. Nothing happens in any of the cases so I am 
suspecting a bug.

Using 4.5.2

Any suggestions are very welcome.

P.S. The only thing that does work is clearing the treewidget, then 
setting columnCount=0 and then using setHeaderlabels again.
I cannot clear the view however but must change the labels without clearing.


Thanks,

Roland Tollenaar.



More information about the Qt-interest-old mailing list