Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3145

Designer: QLayout spacing inheritance not reflected

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P5: Not important
    • Some future release
    • None
    • Tools: Designer
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            gpf Shane McLaughlin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes