how to make multithread work
forsnowlove opened this issue · 1 comments
forsnowlove commented
I want to add some nodes to root node in seprate threads, then the program crashed.
addChild() must be used in single thread? how to use multithread...
mathieu commented
To cut a long story short: you can't.
OSG and Qt want to live in the main thread because this is the thread that has access to the openGL graphic context.
The only option is to make OSG's threading model work with Qt's one. Not an easy task