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

Windows: Rendering issues in fullscreen when QGLWidget/native widget used inside QTabWidget and QMainWindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0 Alpha
    • 5.2.0, 5.2.1, 5.3.0
    • None
    • Windows 7 x64
      MSVC 2010, 2012
      Qt 5.2.x, 5.3.0
    • cf0ea18ac41c71418e84840d4933b126f0bf6b0a (qtbase/5.12, 21.8.2018, 5.12)

    Description

      See attachment for minimal example. Application contains two tabs widgets and opengl.
      Play with macros USE_MAINWINDOW, USE_FULLSCREEN, and USE_OPENGL.

      In order to see the expected behaviour comment USE_MAINWINDOW macro out.
      On widgets tab press button Say Hello!. You should be viewing Hello! text inside central label. Prior to pressing the button, it should be highlighted.

      Now enable USE_MAINWINDOW macro back. Using Qt 5.3 you should see the window, but when you hover button it is not highlighted. Press it, no text appears. Now switch to opengl tab and back. At this point, you should be able to see Hello! text. Regarding Qt 5.2.x, the window is invisible at all. The controls are responsive, though, if you manage to click them, provided that you remember their locations by heart (i.e. you may try to switch tabs and see black QGLWidget on opengl tab).

      This issue comes out when all the three macros are defined. Having disabled one of them, you get properly working application with respect to some sort of difference: the top widget is plain QWidget instead of QMainWindow or no fullscreen mode or no OpenGL can be used.

      PS. There were no such problems with Qt 5.1.x. Also, no problems under Linux.

      Attachments

        1. fullscreen.tgz
          0.8 kB
        2. qtbug39220_2_qt5_win_log.txt
          3 kB
        3. qtbug39220_2.zip
          3 kB
        4. qtbug39220.zip
          3 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              dvolosnykh Dmitry Volosnykh
              Votes:
              13 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes