diff --git a/examples/osgqfont/osgqfont.cpp b/examples/osgqfont/osgqfont.cpp index f82df0e4b..6cc3d99cd 100644 --- a/examples/osgqfont/osgqfont.cpp +++ b/examples/osgqfont/osgqfont.cpp @@ -494,7 +494,7 @@ public: QGridLayout* grid = new QGridLayout; grid->setMargin(0); - grid->addWidget(graphicsWindow->getGraphWidget(), 0, 0); + grid->addWidget(graphicsWindow->getGLWidget(), 0, 0); setLayout(grid); _viewer.setThreadingModel(osgViewer::Viewer::SingleThreaded);