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

[REG 5.9.4=>5.12.3/4] Widget geometry restored outside visible area

    XMLWordPrintable

Details

    • Windows
    • 85dc392135feb72eed449e6eaf47cdd023879394 (qt/qtbase/5.12)

    Description

      In a single screen environment the QWidget::restoreGeometry restores a Window to a position not visible. (See example and qtdiag.txt)

      ( Related to https://bugreports.qt.io/browse/QTBUG-76912 )

      Less relevant details:
      There seems to be a bug that some Widgets (sometimes) are moved incorrectly on screen change (when it goes to sleep or another computer starts using the screen). That is pretty bad, but what is even more annoying is that the dialog saves geometry and it will not be shown on next restore (unless the screen is attached, but it may not be - and if it just was a laptop that rarely is connected to a screen that is pretty bad).

      The attached example contains data from 5.12.4, and it does work on 5.9.4 though that may be due the version (as it bails out restore), but in 5.9.4 I haven't experienced similar problems where the dialog got hidden and was restored hidden.

      Attachments

        1. main.cpp
          0.9 kB
          Thorbjørn Lund Martsum
        2. main.pro
          0.0 kB
          Thorbjørn Lund Martsum
        3. qtbug76900_diag.diff
          4 kB
          Friedemann Kleint
        4. qtbug76900_log.txt
          0.9 kB
          Friedemann Kleint
        5. qtbug76900.zip
          1 kB
          Friedemann Kleint
        6. qtdiag_with_both_screens.txt
          7 kB
          Thorbjørn Lund Martsum
        7. qtdiag.txt
          6 kB
          Thorbjørn Lund Martsum

        Issue Links

          For Gerrit Dashboard: QTBUG-76900
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              tmartsum Thorbjørn Lund Martsum
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes