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

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

XMLWordPrintable

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

      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.

        1. restore_geomety_bug.tgz
          2 kB
          Richard Cognot
        2. BeforeRestore.png
          68 kB
          Richard Cognot
        3. AfterRestore.png
          74 kB
          Richard Cognot
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes