diff options
Diffstat (limited to 'ogrewidget.cpp')
-rw-r--r-- | ogrewidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ogrewidget.cpp b/ogrewidget.cpp index c62dd40..2c43a26 100644 --- a/ogrewidget.cpp +++ b/ogrewidget.cpp @@ -113,6 +113,7 @@ void OgreWidget::initializeGL() m_QmlUI->setResizeMode(QDeclarativeView::SizeRootObjectToView); m_QmlUI->setSource(QUrl("resources/example.qml")); m_QmlUI->rootContext()->setContextProperty("Camera", m_cameraObject); + m_QmlUI->rootContext()->setContextProperty("Window", this); } void OgreWidget::resizeGL(int w, int h) |