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. Glhypnotizer, PaintOutsidePaintEvent and render outside the main loop?

Glhypnotizer, PaintOutsidePaintEvent and render outside the main loop?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 700 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.
  • M Offline
    M Offline
    mkandel
    wrote on last edited by
    #1

    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);
    }@

    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