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. How to make a QWindow(OpenGL) doing its dynamic rendering in background?
Qt 6.11 is out! See what's new in the release blog

How to make a QWindow(OpenGL) doing its dynamic rendering in background?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 880 Views
  • 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.
  • M Offline
    M Offline
    MartinChan 0
    wrote on last edited by
    #1

    I am following the example of QWindow to do my job and it did work.

    But now I have another question:My job was to catch pixels information when the QWindow do render() dynamically,and I got OpenGLFucntion::glRead() worked well,but it only work when the QWindow was exposed to the screen(When I minimize the window i stop animating and the rest paused rather than u expose the window again).My future work may require the QWindow not exposed.

    Should I do render() in a sub thread to do this ? And if so ,what example can i use for reference or what should I pay attention to ? Thanks.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MartinChan 0
      wrote on last edited by
      #2

      It seems like the only way to solve this problem is offscreen render(Use QGLFrameBufferObject)...

      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