Hi to everyone.
I'm using QTreeWidget with more then one column and I want set column width.
As first solution I have used setColumnWidth(), but without solution; then....
I read Qt docs ( take a look here
http://qt-project.org/doc/qt-4.8/qheaderview.html#ResizeMode-enum ) and I try this solution:
oQtHorizontalHeader:setResizeMode( nCol-1, QHeaderView_Fixed )
oQtHorizontalHeader:resizeSection ( nCol-1, 150 )
where oQtHorizontalHeader is QTreeWidget:header().
But this doesn't works: aaaarghhh!
In disagree with Qt docs I have used
oQtHorizontalHeader:setResizeMode( nCol-1, QHeaderView_Custom )
oQtHorizontalHeader:resizeSection ( nCol-1, 150 )
and I have settle QHeaderView_Custom to 4; and it works fine!!!??? Can be introduced this defined value? Or is there something problem somewhere?
I'm using Qt 4.8.4 lib, last qtcontribs and last harbour.
Cheers
Luigi Ferraris