[osg-users] Linux packaging: Qt 4 vs 5

James Turner zakalawe at mac.com
Thu Jul 21 07:24:48 PDT 2016


> On 21 Jul 2016, at 07:33, Andre Normann <andre.normann at gmail.com> wrote:
> 
> 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. 
> 

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.

Kind regards,
James


More information about the osg-users mailing list