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

Unexpected change in QGridLayout spacing when showing/hiding widgets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.10.0
    • Widgets: Layout
    • None

    Description

      In the attached, when I change the selected combobox item from "line edit 2" to "line edit 3" and back again, the vertical spacing between the widgets disappears, but reappears when I reselect "line edit 3".

      In widget.cpp, if I comment out either of "vComboBoxLowerLeft->setVisible(false);" or "gridLayout->addWidget( vComboBoxLowerLeft, 1, 0 );", then I do not see the spacing change.

      P.S. I can also make the spacing behave as expected if the widgets are in columns 0 and 2 instead of columns 0 and 1.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            chris857 chris857
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes