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

restoreGeometry() fails on multiscreen setup when application is maximized on Linux.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.4
    • Widgets: Main Window
    • None
    • RedHat 6, RedHat 7, OpenSuse (TumbleWeed), and others.
    • Linux/X11

    Description

      Observed on various linux flavors (RedHat, OpenSuse), both with Gnome or KDE desktops.

       

      Compile and run the attached example. Make sure the application is maximized.

      From the menu do a "Clear saved geometry" to make sure nothing is stored in the settings, then a "Save geometry" followed by a "Restore saved geometry.

       

      Attached images show the results before and after restore: after restoring the geometry the window is maximized, but the widgets inside are restored to the non-maximized geometry only.

      Attachments

        1. AfterRestore.png
          74 kB
          Richard Cognot
        2. BeforeRestore.png
          68 kB
          Richard Cognot
        3. restore_geomety_bug.tgz
          2 kB
          Richard Cognot

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              rcognot Richard Cognot
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes