ollel
10th March 2011, 14:36
Hi
I'm having problems when using the saveGeometry/restoreGeometry with QMdiSubWindow.
What happens is that restoreGeometry sets an incorrect horizontal position on my MdiChild window when the main window is on the secondary monitor, the horizontal position equals the width of the primary monitor.
I've attached a project which displays the problem, follow these steps to reproduce:
1. Run the application
2. Move the main window to your secondary monitor
3. Click on File->New child
4. Click on File->Save geometry
5. Close the mdi child window
6. Click on File->Restore geometry
If you try the same steps on your primary monitor it works as expected
Anyone out there who can help me understand this behaviour, is this a bug in Qt or in my code?
I'm using Qt 4.7.2 on Windows7
Thanks in advance
Olle
I'm having problems when using the saveGeometry/restoreGeometry with QMdiSubWindow.
What happens is that restoreGeometry sets an incorrect horizontal position on my MdiChild window when the main window is on the secondary monitor, the horizontal position equals the width of the primary monitor.
I've attached a project which displays the problem, follow these steps to reproduce:
1. Run the application
2. Move the main window to your secondary monitor
3. Click on File->New child
4. Click on File->Save geometry
5. Close the mdi child window
6. Click on File->Restore geometry
If you try the same steps on your primary monitor it works as expected
Anyone out there who can help me understand this behaviour, is this a bug in Qt or in my code?
I'm using Qt 4.7.2 on Windows7
Thanks in advance
Olle