PDA

View Full Version : treeWidgets resizeColumnToContents not working properly



jnk5y
1st June 2006, 22:21
Qt 4.0.1 Windows

treeWidgets resizeColumnToContents only resizes the column to the largest visible item. Any item that is not shown do to the tree being to long for the area (thus a scrollbar is shown) is not considered for it's size. So what happens is that if the items being shown are short and then someone scrolls to a longer name it is cut off.

Any idea how to fix this or reimplement resizeColumnToContents to fix this?

wysota
1st June 2006, 23:54
First thing you might try is to upgrade your Qt installation, because 4.0.x series contained many bugs and it's possible it has been solved in one of 4.1.x releases.