Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    QOpenGL exclusively for off-screen drawing...

    General and Desktop
    2
    2
    446
    Loading More Posts
    • 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.
    • D
      drhalftone last edited by

      I want to do some image processing using OpenGL shader language programming. So I'm creating a QGLWidget. Does anyone know how can I get the widget to execute its initialize, resize, or update functions without actually showing the widget on-screen?

      1 Reply Last reply Reply Quote 0
      • A
        agocs last edited by

        You don't need QGLWidget and friends. Just use QOpenGLContext, QOffscreenSurface and QOpenGLFramebufferObject. All your rendering should target the framebuffer object, without anything going to an actual window.

        http://doc.qt.io/qt-5/qoffscreensurface.html

        1 Reply Last reply Reply Quote 0
        • First post
          Last post