Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

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



  • 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.



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


Log in to reply