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

DockWidget allowed areas not working properly when no central widget is set on QMainWindow or it has zero size

    XMLWordPrintable

Details

    Description

      In the attached application are three dock widgets. Main is located to left side of the screen and it's allowed to be in left or right.
      Then the second and third dockwidgets are tabbed in the right side of the screen and their allowed areas are top and right.

      For some reason widgets allowed areas are reset. In the example "main" widget is possible to dock in every location of the screen. You can move it to the top and bottom of the screen even those are not set using QDockWidget::setAllowedAreas().

      Note: If you shrink the main window to its minimum size, you can no longer dock it at all.

      Solution like docking the widgets in some other areas than in the example is not suitable.
      "Main" widget should be possible to dock only right or left and second & third only right side of the screen or top of each other.

      Attachments

        1. qt5OpenGLdockwidgets.zip
          23 kB
        2. qtbug38761_diag.diff
          11 kB
        3. qtbug38761_drag.txt
          39 kB
        4. qtbug38761_too_small.txt
          45 kB
        5. qtbug38761.zip
          2 kB

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              anylitok Antti Yli-Tokola (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes