TreeView: Column auto sizing behaviour

By default, in a TreeView, the size of each column is defined by the size of its content. If the TreeView is wider than the sum of the width of its columns, the last column receives the extra width.

I’d like to specify that a different column that should receive this extra width.


Context:
I’m trying to solve issue (https://github.com/pychess/pychess/issues/1688 ). I’ve been able to add a Reset column at the one-before last position without being bothered by the way columns are sized, see below:

(Current solution - Capture A)
image

However, ideally the Reset column would be the rightmost one. This is where column sizing becomes a problem.

I think it is not that dumb: See for example

https://developer.gnome.org/gtk3/stable/GtkTreeViewColumn.html#gtk-tree-view-column-set-expand

Thank you for pointing out this piece of documentation, I had missed it. This solves all my needs.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.