Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.6, 5.3.1
-
None
-
Dell XPS 8700 running Windows 7 64-bit (Build 7601: Service Pack 1) with two side by side 1920 x 1200 monitors. Qt is the latest 5.3.1.0 prebuilt libraries acquired using the Qt Maintenance tool.
-
616469bb760fc7f751b3fc103f3584f14d3e2d0d (dev, 24.7.2014, 5.4)
Description
On systems that use two monitors (side by side), where the screen space is set up to be a continuous coordinate system, QMainWindow::restoreDockWidget will not restore a floating dock widget to the secondary window.
This issue can be reproduced by using and modifying the example application code provided in QTBUG-16252. If the code is used as-is, where QMainWindow::restoreState restores the dock windows to their positions, the issue does NOT exist. For example, you can run the application and leave its main window open on the primary screen, float one of the two dock windows and move it to the secondary screen, then stop and restart the application, and the floating dock window is correctly repositioned and sized on the secondary screen.
To reproduce the problem, modify the QTBUG-16252 example code so that the two dock widgets are created after the readSettings() call, and add calls to QMainWindow::restoreDockWidget for each. Try the same steps as above and the dock window that was moved to the secondary window will be restored back to the primary window instead of its previous place on the secondary window.
Attachments
Issue Links
- relates to
-
QTBUG-16252 QDockWidgets of maximized windows are not restored to the correct size when calling QWidget::restoreGeometry() , QMainWindow::restoreState() in a sequence
- Closed