Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.7
Description
QQuickWindow window; window.screen(); // returns the primary screen window.setGeometry(geometry on another output); window.screen(); // still returns the primary screen
QWindow::setGeometry() won't update QWindow::screen() if the platform window has not been created. It produces unexpected results in code that assumes that there exists correlation between the geometry and the screen.
As a workaround, one can call QWindow::setScreen() after QWindow::setGeometry(). But shouldn't QWindow::setGeometry() update the screen?