Hi,
there may be a bug in osgQt::GraphicsWindowQt(osg::GraphicsContext::Traits* 
traits, QWidget* parent = NULL, const QGLWidget* shareWidget = NULL, 
Qt::WindowFlags f = 0) constructor.

Anyway I solved as follows: basically using the other GraphicsWindowQt 
constructor available and creating a GLWidget from my own (so that I can also 
use the forwardKeyEvents parameter otherwise impossible to set).

Here is the code:

Code:
QGLFormat format = osgQt::GraphicsWindowQt::traits2qglFormat(traits);
osgQt::GLWidget* glwidget = new osgQt::GLWidget(format, this, 0, 0, true);
camera->setGraphicsContext(new osgQt::GraphicsWindowQt(glwidget));




Gianni

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50673#50673





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to