<div dir="ltr">I have now created an example which is working well. <div><br></div><div>Here is the link: <<a href="https://github.com/anormann1974/osgviewerQt5">https://github.com/anormann1974/osgviewerQt5</a>></div><div><br></div><div>It does not depend on osgQt and multi threading is working. </div><div><br></div><div>Regards,</div><div>André</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-21 16:24 GMT+02:00 James Turner <span dir="ltr"><<a href="mailto:zakalawe@mac.com" target="_blank">zakalawe@mac.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 21 Jul 2016, at 07:33, Andre Normann <<a href="mailto:andre.normann@gmail.com">andre.normann@gmail.com</a>> wrote:<br>
><br>
> building OT with QThread support is just one step. You also need to write your own osgQt::GraphicsWindowQt derived class to get threading working. I can not remember who posted this solution, but I think you can find in the mailing list archive. With my solution you can use multi-threading, but you can not switch between multi-threading modes.<br>
><br>
<br>
</span>I’ve got a GraphicsWindowQt5 (and a GraphicsWIndowQtQuick derivative) in my local tree that does that with multi-threading, and doesn’t require OpenThreads using Qt; at least on Mac it seems to work ok. What I’m working on now is an adapter to import the osg::GraphicsContext into a QOpenGLContext using the setNative API that was added in Qt 5.4; this isn’t required for the window classes but opens up another integration strategy.<br>
<br>
Kind regards,<br>
James<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</div></div></blockquote></div><br></div>