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

Windows: QMainWindow::restoreDockWidget() offsets position of floating dock by window frame

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.5.0
    • 4.8.x, 5.4.0
    • Widgets: Main Window
    • None
    • Windows 7, visual studio 2012
    • 4bafef9890a1dc42a5e95a348ace9bdd70b1fc61 (qtbase/5.5, 26.4.2015, 5.5)

    Description

      With attached zip file,

      1 compile and run
      2 clicked the button "Place 0,0" in the main window, observe that floater is move the left top corner.
      3 Close application by clicking "X" in main window.
      4 Restart application, the position of floater is changed.

      To be noted, if the floater is restored by QMainWindow::restoreGeometry(), then it is fine. restoreDockWidget() may not taking title bar size into account.

      Attachments

        1. qtbug45780_diag.diff
          3 kB
        2. qtbug45780.zip
          2 kB
        3. testRestore.zip
          12 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              mikechern M. C
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes