diff --git a/src/osgQt/GraphicsWindowQt.cpp b/src/osgQt/GraphicsWindowQt.cpp index d7343118a..1d89d4e4b 100644 --- a/src/osgQt/GraphicsWindowQt.cpp +++ b/src/osgQt/GraphicsWindowQt.cpp @@ -345,7 +345,7 @@ bool GraphicsWindowQt::init( QWidget* parent, const QGLWidget* shareWidget, Qt:: flags |= Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint; // create widget - _widget = new GLWidget( traits2qglFormat( _traits ), parent, shareWidget, flags ); + _widget = new GLWidget( traits2qglFormat( _traits.get() ), parent, shareWidget, flags ); } // set widget name and position