Details
-
Suggestion
-
Resolution: Unresolved
-
P5: Not important
-
None
-
None
Description
QLayout documentation states that if no value is explicitly set for spacing, the layout's spacing is inherited from the parent layout, or from the style settings for the parent widget.
It is fair to include this in the documentation, but this behavior is not reflected when one is creating a form in Designer.
If a layout is set to have spacing of 50 and it contains nested layouts, by default the nested layouts visually appear to have a spacing of 6 (on Windows). Furthermore, the property window for the nested layout shows that it has a value of 6 for spacing.
However, when previewed, the nested layout inherits the spacing of 50 from the parent layout which is confusing, especially if one has not read about the inheritance.
Ultimately Designer should make changes to reflect this inheritance, such as:
- Visually applying the spacing to any nested layouts so the user can see how the spacing appears while creating the form, not just previewing it.
- Setting the spacing property of the nested layout to match that of the parent layout.