biolab / orange-widget-base

Base widget and workflow definitions for Orange
Other
25 stars 56 forks source link

Retain column width in QTableView #258

Open ajdapretnar opened 1 year ago

ajdapretnar commented 1 year ago
Orange version

3.36

Expected behavior

Remember column was resized in a data table and apply resizing on column width computation?

Actual behavior

I'd like to retain column width in data tables across Orange. For example, I open Data Table and resize one text column. Now, I change something upstream. The data table is updated and column resized to default. If I wish to interactively observe changes to my workflow, I have to keep resizing the column to the desired width.

Steps to reproduce the behavior

Corpus (deerwester) - Statistics - Data Table. Resize column in Data Table, recompute statistics.

Additional info (worksheets, data, screenshots, ...)

This might be a pain in the butt to do. Or not. I rely on experts (@ales-erjavec) to decide whether this is a doable solution.

ajdapretnar commented 11 months ago

The issue is solved for the time being.

However, after discussing with @janezd, we concluded it would be nice to have a mixin, that could be used in widgets such as Test and Score and Predictions. Moreover, it would be nice to have a hint, that would remember the column name (if I resize Title, Title would be resized, even if the order of the columns is changed).