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. QOpenGL exclusively for off-screen drawing...
Forum Updated to NodeBB v4.3 + New Features

QOpenGL exclusively for off-screen drawing...

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 627 Views 1 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.
  • D Offline
    D Offline
    drhalftone
    wrote on last edited by
    #1

    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
    0
    • A Offline
      A Offline
      agocs
      wrote on last edited by
      #2

      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
      0

      • Login

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