PDA

View Full Version : Change column width in a QTreeWidget



mace
26th May 2006, 11:14
Hi
Can anybody tell me how to change the column width in a QTreeWidget? At the moment I'm using resizeColumnToContents ( ) but I'm not entirely happy with it because the text in adjacent columns is too close to each other and I want some extra space. I would prefer if I could specify the column width.
Thanks a lot

munna
26th May 2006, 12:08
try header()->resizeSection(int logicalIndex, int size)

mace
27th May 2006, 12:19
Works! Thanks a lot. :D
M