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

Wayland QOpenGLContext->setNativeHandle() will still create a new GL context

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.1
    • QPA: Wayland
    • None
    • Linux/Wayland

    Description

      I'm attempting to render QML (using QQuickRenderControl based heavily on https://felgo.com/doc/qt/qtquick-rendercontrol-example/) within an external OpenGL context and have had success running with X11/GLX and Windows/WGL.

      I'm attempting to test with Wayland by passing a QEGLNativeContext to QOpenGLContext->setNativeHandle() and it seems from my cursory look through the Wayland backend, that QWaylandGLContext does not support wrapping a native context unlike QGLXContext.  This means a subsequent call to QOpenGLContext->create() will create a new OpenGL context which is not what I want.

      Attachments

        For Gerrit Dashboard: QTBUG-82528
        # Subject Branch Project Status CR V

        Activity

          People

            giucam Giulio Camuffo
            ystreet00 Matthew Waters
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change