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

Restoring from an initial Maximized state doesn’t work (anymore?) on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 4.8.1, 5.3.2
    • None
    • Windows 7 x64 with Qt SDK 1.2.1, i.e. Qt 4.8.1 and Qt Creator 2.4.1.

    Description

      Hi,

      My application uses saveGeometry()/saveState() and restoreGeometry()/restoreState(), so that my application’s geometry and state is remembered from one session to another.

      If I maximize my application, quit it and restart it, then my application will, as expected, be maximized. However, if I try to ‘restore’ it, then its position and dimensions won’t be the ones of the previous session.

      Now, if I maximize my application and ‘restore’ it (these within the same session), then both its position and dimensions are correct.

      So, could it be that saveGeometry()/saveState() and/or restoreGeometry()/restoreState() overlook the ‘restored’ geometry/state of my application?

      FWIW, I seem to remember that everything used to work... before Qt 4.8?

      Cheers, Alan.

      PS: this is a copy/paste from a message that I posted on the Qt Developer Network forum (http://qt-project.org/forums/viewthread/17660).

      Attachments

        1. bottom-before-and-after.png
          bottom-before-and-after.png
          59 kB
        2. left-after.png
          left-after.png
          59 kB
        3. left-before.png
          left-before.png
          59 kB
        4. right-before-and-after.png
          right-before-and-after.png
          59 kB
        5. top-after.png
          top-after.png
          58 kB
        6. top-before.png
          top-before.png
          58 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
              agarny Alan Garny
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes