Nominate our 2022 Qt Champions!

Show a foreign OpenGL texture in a QOpenGLWidget

  • Hello,
    I have a non-Qt OpenGL renderer that generates a framebuffer to perform drawing, and I would like to display the resulting image in a QOpenGLWidget ; not draw into it, just display an existing shared texture (because the setup would be different and not ideal for us).
    I set the Qt::AA_ShareOpenGLContexts flag on my application and shared the context of the non-Qt custom renderer.
    With this setup, what would be the simplest way to display the result in QOpenGLWidget?

Log in to reply