multithreading - Rendering into QGLWidget that runs at a different thread than main -


i managed start qapplication @ different thread main , run qglwidget there, however, when ever try execute opengl command in main thread gl invalid operation error. suspect if having gl context in different thread couldn't find way context of qglwidget , set current in main thread qglwidget runs on different thread .

any suggestions?

note:i need have seperae threat gui , opengl computations.

you should have qapplication in main thread (gui in main thread) , computations can move other threads. not gui, main thread gui (qapplication).


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -