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

WebEngineView does not work inside a QQuickRenderControl

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.0 RC
    • 5.5.1
    • Quick: Other, WebEngine
    • None
    • Windows 10, Qt 5.5.1 64 bit for MSVC
    • ae4b0583e4d62b6fe660b316e8a9c117c8b85881

    Description

      When using a QQuickRenderControl to render a QML UI to an OpenGL surface, WebEngineView items do not render properly. Diving into this problem it appears to be that WebEngineView wants to use a global OpenGL context created by QtWebEngine::initialize, but there is no public API for accessing that context in order to share it with the QQuickRenderControl context.

      I've been able to work around the problem by manually creating a new offscreen context which is shared with my QQuickRenderControl and calling the non-public function qt_gl_set_global_share_context(), rather than calling QtWebEngine::initialize. This allows the WebEngineView to render properly.

      Attachments

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

        Activity

          People

            leenam Leena Miettinen
            jherico Bradley Austin Davis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes