Closed irgolic closed 3 years ago
Currently, if using sizeHintForColumn
, the view doesn't change. I could not find a solution other than hardcoding the upper limit, which I don't think is desirable. Suggestions?
Did you comment out the widget's sizeHint?
Commenting it out just "breaks" the view, not column width. Namely the window isn't wide enough. Columns, when resizing the window, are still too wide.
The widget is quite big at the moment, and many of the columns could be narrower by default.
Current
Possible solution
The sizeHint should not be set on the widget itself, it should be set on the table. To calculate it, each column's preferred width should be calculated by checking its values, and it should be clamped to a maximum value (i.e., long titles should elide).