diff options
Diffstat (limited to 'examples/qt3d/gooch-qml')
-rw-r--r-- | examples/qt3d/gooch-qml/gooch-qml.pro | 2 | ||||
-rw-r--r-- | examples/qt3d/gooch-qml/main.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/qt3d/gooch-qml/gooch-qml.pro b/examples/qt3d/gooch-qml/gooch-qml.pro index 73c947c72..7c3e962c1 100644 --- a/examples/qt3d/gooch-qml/gooch-qml.pro +++ b/examples/qt3d/gooch-qml/gooch-qml.pro @@ -2,7 +2,7 @@ error( "Couldn't find the examples.pri file!" ) } -QT += 3dcore 3drenderer 3dquick qml quick +QT += 3dcore 3drenderer 3dquick 3dinput qml quick SOURCES += \ main.cpp diff --git a/examples/qt3d/gooch-qml/main.cpp b/examples/qt3d/gooch-qml/main.cpp index ad2a11e62..29296db79 100644 --- a/examples/qt3d/gooch-qml/main.cpp +++ b/examples/qt3d/gooch-qml/main.cpp @@ -37,6 +37,7 @@ #include <window.h> #include <Qt3DRenderer/QRenderAspect> #include <Qt3DQuick/QQmlAspectEngine> +#include <Qt3DInput/QInputAspect> #include <QGuiApplication> #include <QtQml> @@ -49,6 +50,7 @@ int main(int argc, char* argv[]) Qt3D::Quick::QQmlAspectEngine engine; engine.aspectEngine()->registerAspect(new Qt3D::QRenderAspect()); + engine.aspectEngine()->registerAspect(new Qt3D::QInputAspect()); // Expose the window as a context property so we can set the aspect ratio engine.qmlEngine()->rootContext()->setContextProperty("_window", &view); |