Hi, Are you talking about the old osgviewerQT [1] or the newer osgviewerQt [2]?
[1] http://trac.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgviewerQT/osgviewerQT.cpp?rev=6819 [2] http://trac.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgviewerQt I remember having problem with the old one, but not with osgviewerQt. BTW, are you running OSG on Linux or Windows? Émeric 2014-09-22 18:10 GMT+02:00 Nick Modly <[email protected]>: > Hi, > > I'm looking at extending the osgViewerQT example by being able to add items > to the QGraphicsView (by setting a QGraphicsScene and adding items to that). > These items include some QT controls that need to be embedded in the window > with transparency enabled. > > When I simply create the scene and add the controls (using a > GraphicsProxyWidget), the view begins flickering black and white and the log > prints "QGLContext::makeCurrent(): Failed." over and over. It seems like QT > and OSG are fighting over the context. I've heard that you can get around > this by subclassing the QGraphicsScene and doing your OSG rendering in the > drawBackground() method, storing and retrieving the context before/after, but > I'm not exactly sure what that means - calling frame() there? > > Thank you! > > Cheers, > Nick > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=61113#61113 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

