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

QDockWindow jumps back after user resize

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.11.0
    • None
    • I tested this under Windows 10, with Qt 5.10.1 with MinGW32 compiler. However, it looks from the code that the issue is independent of environment.

    Description

      Expected behaviour:

      • When I resize a docked QDockWindow manually, and afterwards resize the QMainWindow, I expect the size of the QDockWindow to remain.

      Real behaviour:

      • I have resized the docked QDockWindow manually. When I afterwards resize the QMainWindow, the QDockWindow's size jumps back to its original size.
      • However, once I drag any QDockWindow out to be floating, this bug ceases to occur.

       

      It seems to me, that commit https://github.com/qt/qtbase/commit/60be2fb6a13315f074c3c0b7793c38632f291e8b introduced this bug, because the internal variable QDockAreaLayout::fallbackToSizeHint gets set to false only in the QMainWindowLayout::hover method (which gets called e.g. on moving a floating window), but not on startSeparatorMove (which gets called once the user resizes a docked QDockWindow manually).

       To fix this, I think the function QMainWindowLayoutSeparatorHelper<Layout>::startSeparatorMove (or endSeparatorMove) must be modified to set fallbackToSizeHint = false.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              max.weller Max Weller
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes