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

[REG: 5.5.1->5.6.1] QDockWidget cannot be properly docked on a secondary screen that has negative position

    XMLWordPrintable

Details

    Description

      When undocking a dock widget and trying to drag it to another docking position, the docking fails and the dock widget is restored to the initial position. This happens also if the widget is floating and then moved to another position - it will restore to the original docking position.

      Reproducing the bug requires 2 monitors where the secondary monitor is on the left side (or above) of the primary monitor - thus has "negative" coordinate space.

      Steps to reproduce:

      • Run attached sample
      • Undock one of the dockwidgets and drag it to left dock area of the main window
      • Try to dock the dragged dockwidget on the left side docking area
      • EXPECTED: dockwidget is properly docked on left side
      • ACTUAL: dockwidget is restored to the right side docking area

      Scenario #2 steps:

      • Run attached sample
      • Undock one of the dockwidgets and leave it floating
      • Try to dock the floating dockwidget to left docking area
      • EXPECTED: dockwidget is properly docked on left side
      • ACTUAL: dockwidget restores last remembered docking position on right side, it does not restore to floating state

      Attachments

        1. qtbug55639_diag.diff
          3 kB
        2. qtbug55639_full_diag.diff
          17 kB
        3. qtbug55639_log.txt
          61 kB
        4. qtbug55639_qtdiag.txt
          4 kB
        5. qtbug55639.zip
          2 kB
        6. qtbug55639.zip
          0.8 kB

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              jussi_witick Jussi Witick
              Votes:
              7 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes