Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
5.14.1
-
None
-
Windows 10. Nvidia Q 1070 max. Three monitors. 1 - 2 - 3
2 is primary monitor.
Description
Qt OpenGl samples doesn't work if you focus a not primary screen and run app.
The bug is very easy to reproduce.
Open an opengl sample on Qt creator. Click play, and inmediately click on a non primary screen. ( qopenglwidget sample)
Or change code on main.cpp
MainWindow mw;
mw.showMaximized();
return a.exec();
to:
MainWindow mw;
mw.move(2020,40).
mw.showMaximized();
return a.exec();
The windows move correct to right monitor ( because central or primary is 1920 pixels x 1080, but freeze app and windows keep white.
I use QOpenGLWidget on several windows in my app. App only works fine, if user play on primary screen. After that, it is possible to move windows to other screens, but when QOpenGLWidget is created, the window handle must be on primary screen.
Thanks