Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83377

QOpenGLWidget doesn't work on not primary screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.14.1
    • GUI: OpenGL
    • None
    • Windows 10. Nvidia Q 1070 max. Three monitors. 1 - 2 - 3
      2 is primary monitor.
    • Windows

    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

       

       

       

       

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            promero Pedro Romero
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes