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

QSplitter does not honor preferred height

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.2.1
    • Widgets: Layout
    • None
    • macOS

      When adding the widget to QSplitter, it grabs more space than needed from child widgets, resizing them below preferred height (from sizeHint()), while adding more then preferred height to the new widget.

      In the attached example QSplitter holds two widgets: W1: 335 px (preferred 200px) and W2: 220px (preferred 200px). Adding new widget W3 with preferred height of 100px changes the heights as follow. W1: 171px, W2: 112px, W3: 269px. So, even though there is enough space to give all widgets preferred size, QSplitter instead gives too much to the new widget, restricting the previous ones.

      If this is intended behaviour, is it documented somewhere?

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

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

              Created:
              Updated:

                There are no open Gerrit changes