Glhypnotizer, PaintOutsidePaintEvent and render outside the main loop?



  • For code organization I need to call OpenGL from another thread.

    I am trying to follow the glhypnotizer example at (http://blog.qt.digia.com/blog/2011/06/03/threaded-opengl-in-4-8/) and want to silence the makecurrent() function, but can't get it work in modern Qt5. For example, PaintOutsidePaintEvent is missing when I grep the Qt source...

    How can I render OpenGL onto a widget from another thread?

    @while (true)
    {// the dream
    auto foo=somework()
    render->render(foo);
    }@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.