From 63a88630e92d72db42616f94cd1fae1404e9fa71 Mon Sep 17 00:00:00 2001 From: Paul Lemire Date: Wed, 8 Jul 2015 12:58:43 +0200 Subject: gooch-qml: Add the input aspect, needed for the camera Change-Id: I35df4232d327b7fc816642b968c0590fa34c9544 Reviewed-by: Sean Harmer --- examples/qt3d/gooch-qml/gooch-qml.pro | 2 +- examples/qt3d/gooch-qml/main.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') 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 #include #include +#include #include #include @@ -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); -- cgit v1.2.3