summaryrefslogtreecommitdiffstats
path: root/examples/torus-qml/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/torus-qml/main.cpp')
-rw-r--r--examples/torus-qml/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/torus-qml/main.cpp b/examples/torus-qml/main.cpp
index 30ce9b65e..baa6daefb 100644
--- a/examples/torus-qml/main.cpp
+++ b/examples/torus-qml/main.cpp
@@ -41,7 +41,7 @@
#include <Qt3DQuick/quickwindow.h>
#include <Qt3DRenderer/qrenderaspect.h>
-
+#include <Qt3DInput/QInputAspect>
#include <QGuiApplication>
#include <QtQml>
@@ -54,6 +54,7 @@ int main(int argc, char* argv[])
Qt3D::Quick::QQmlAspectEngine engine;
engine.aspectEngine()->registerAspect(new Qt3D::QRenderAspect());
+ engine.aspectEngine()->registerAspect(new Qt3D::QInputAspect());
QVariantMap data;
data.insert(QStringLiteral("surface"), QVariant::fromValue(static_cast<QSurface *>(&view)));
data.insert(QStringLiteral("window"), QVariant::fromValue(&view));