QHeaderView

John Tapsell johnflux at gmail.com
Sun Jan 18 09:49:02 GMT 2009


2009/1/18 Robert Knight <robertknight at gmail.com>:
>>  Any suggestions on how to proceed?  If other people agree with me,
>> perhaps we can get a patch into Qt to allow for this behaviour.
>
> The goal is to keep the content in each column readable when resizing
> the sections.  This requires some input to the header view about the
> minimum width for each column and also an 'aesthetically pleasant'
> distribution of widths between them.  For a commercial project* I
> implemented a 'stretchy' header view widget which sets the initial
> sizes based on ratios between the various sections and then adjusts
> the proportions, rather than the actual widths, when the user resizes

Thanks.  I think this might not be quite what I want though.  I think
a good-enough solution would be to simply always grow/shrink the last
column, if the last column is to set to stretch.

John




More information about the kde-core-devel mailing list