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

QGLWidget with a child QDockWidget containing a QWebEngineView may result in corrupted graphics

    XMLWordPrintable

Details

    • Windows

    Description

      In a very specific setup including QGLWidget as the central widget of a QMainWindow and QWebEngineView inside a QDockWidget as a child of the central widget, the QMainWindow separator may get drawn entirely black despite being set green with a stylesheet.

      This seems to occur exclusively with QGLWidget. The separator would be drawn correctly as green if QGLWidget is replaced with any other widget (including QOpenGLWidget).

      Machines affected by the issue have the separator drawn consistently as black while on some machines the problem does not appear at all.

      Application output on an affected machine:

      Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is
      created.
      QWindowsGLContext::makeCurrent: SetPixelFormat() failed (Unknown error
      0xc0070006.)
      qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
      QWindowsGLContext::makeCurrent: SetPixelFormat() failed (Unknown error
      0xc0070006.)
      qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
      

      **The problem can be reproduced on some machines by running the attached example. More information on the machine able reproduce the issue in qtdiag.txt

      Attachments

        1. qtbug79851_actual.JPG
          qtbug79851_actual.JPG
          30 kB
        2. qtbug79851_expected.PNG
          qtbug79851_expected.PNG
          278 kB
        3. qtbug79851_qtdiag.txt
          4 kB
        4. qtbug79851.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            miikapernu Miika Pernu
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes