Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 4.8: Restoring from an initial Maximized state doesn't work (anymore?)
Forum Updated to NodeBB v4.3 + New Features

Qt 4.8: Restoring from an initial Maximized state doesn't work (anymore?)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    agarny
    wrote on last edited by
    #1

    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 (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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Swatwork
      wrote on last edited by
      #2

      Hi

      I've seen this too, on Linux and WinXP. It's most noticeable in versions of QtCreator compiled for Qt 4.8.0 onwards. When restored from the maximized state the main window shrinks to it's minimum size.

      I've checked Qt 4.7.4 (on Windows XP) and it works correctly so I suspect this is something introduced with 4.8.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        agarny
        wrote on last edited by
        #3

        Thanks Swatwork, it's 'nice' to see that I am not the only one experiencing this problem. FWIW, I have just created a bug report for it: https://bugreports.qt-project.org/browse/QTBUG-26322

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved