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

QMdiSubWindow restoreGeometry does not work on second screen when using tile pattern

    XMLWordPrintable

Details

    • Windows

    Description

      I use the saveGeometry/restoreGeometry functions of the QMdiSubWindow.

      Unfortunately there are some issues around the usage of the save/restore feature combined with QMdiSubWindow and should be reviewed from Qt-Development again.

      One defect happens in a scenario where two QMdiSubWindow are arranged with the tile (or cascade) pattern of the QMdiArea. If the MainWindow is placed on a second screen then the saveGeometry/restoreGeometry fail and both QMdiSubWindow are not displayed within the visible region of the QMdiArea.

      I suppose that the computation of the widgets positions is not correct. Please see below the output of the widget attributes before and after restorGeometry:

      Before restoreGeometry:
      QMdiSubWindow(137010  )(visible: true):      0, 0, 289, 572
      QMdiSubWindow(2561548)(visible: true):  289, 0, 288, 572

      After restoreGeometry:
      QMdiSubWindow(137010  )(visible: true): -289, 0, 289, 572
      QMdiSubWindow(2561548)(visbile: true): -288, 0, 288, 572

       

      Attachments

        Issue Links

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

          Activity

            People

              anwojcie Anna Wojciechowska
              fonsissimo Alfonso Gambuzza
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes