Qt 4.8: Restoring from an initial Maximized state doesn't work (anymore?)
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?
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.
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