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

Provide a way to create a QOpenGLContext from a platform-specific GL context

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: 5.1.0 Beta 1
    • Fix Version/s: None
    • Component/s: GUI: OpenGL, Qt3D
    • Labels:
      None

      Description

      Currently it's possible to share GL contexts between QGLWidgets. But there's no way to create a QOpenGLContext, QGLContext, or QGLWidget from an existing GL context created outside of Qt.

      Say, for example, I have an application that creates its own platform-specific GL context. I'd then like to share this context with a QGLWidget so I can display its output onscreen. There's no way to tell Qt to share with the platform-specific GL context.

      It would be great to have a method like QOpenGLContext::createWithPlatformSpecificContext(void *platformSpecificContext). On Mac, I could then cast my CGLContextObj to void * and pass it in to that method, then tell the QGLWidget to share with it.

        Attachments

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

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            smokris Steve Mokris
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes