editstyle.ui - Hiding left-hand list then showing it: size too small

• Apr 17, 2019 - 13:30
Reported version
3.0
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

1) Click the Format menu, Style... option
2) Click the arrow button in the bottom left corner of the dialog
3) Click that same arrow button again, to show the list

The list is now 60px wide instead of the correct 170px wide. The pageList->minimumWidth() is set to 60 when it should be set to 170. This can be fixed directly in the Qt Creator's UI designer for the dialog.


Comments

I just realized that this pageList, the leftmost list, is sizable horizontally. I suppose the current minimum width of 60 is to accommodate that. I also see that the pageList auto-hides if you drag the size bar all the way left. But I don't see code for that, so maybe it's a widget property. It looks like my original PR's solution is not a good one. A real solution requires remembering the user width for this list.

There is a lot of behavior here, interactions between the main panels, that is not in the code. It appears to all be Qt-defined behaviors. For example:
1) pageList has no max width. But it only gets as big as the pageStack allows, within the size of the whole dialog.
2) If I size the dialog very wide, pageList is no longer user sizable, not thinner or wider.

Fix version
3.1.0