QTreeView column content size
Dear Qt users,
How can I get the optimal width of a QTreeView column so that each item are visible ?
sizeHintForColumn(ii)gives me a smaller width than the optimal.
I want the one I could have if I'd call ResizeToContent.
Thanks by advance
Not a direct answer but why not call resizeColumnToContents(ii) directly ?
My TreeView is floating and I want its maximun width to be synchronized with its column content.
But I also want to let the possibility to the user to reduce this size manually.
I'd do something like :