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
Issue Links
- is replaced by
-
QTBUG-30636 Regression: QWidget::restoreGeometry does not work correctly after maximized
-
- Closed
-
- relates to
-
QTBUG-21371 QWidget::restoreGeometry doesn't restore correct screen number if application was in maximized or fullScreen state
-
- Closed
-