Hi Rebecca,
On 3 January 2014 23:04, Rebecca N. Palmer <[email protected]> wrote: > Confirmed that my XInitThreads() fix doesn't help in Qt 5.0, and that > --SingleThreaded does work. > > These Qt bug reports suggest that using Qt's moveToThread() and > makeCurrent() may help, but I haven't tried that yet: > https://bugreports.qt-project.org/browse/QTBUG-31403 > https://bugreports.qt-project.org/browse/QTBUG-33575 Thanks for the links. This really feels like a Qt bug to me. The OSG has been working fine with multiple contexts without a moveToThread() equivalent on any other platform, it's normally sufficient to just implement a releaseContext() and makeContext() and have the underlying Windowing/GL integration handle things, Qt 5 is adding some extra threading constraints that don't exist in the native Windowing libraries. Right now osgQt can work with the osgViewer providing the OpenThreads threads, requiring Qt's moveToThread() would require the use of QThreads. OpenThreads does have a QThreads path but it isn't built by default. There are number of things that are great about Qt, and there a number of things that their solutions are just inflexible and stupid. I'll have to defer engineers with more experience with Qt to resolve this problem, possibly Qt engineers might need to fix things at their end. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

