Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Show a foreign OpenGL texture in a QOpenGLWidget
Forum Updated to NodeBB v4.3 + New Features

Show a foreign OpenGL texture in a QOpenGLWidget

Scheduled Pinned Locked Moved General and Desktop
opengldesktop
1 Posts 1 Posters 682 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zylann
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved