summaryrefslogtreecommitdiffstats
path: root/examples/gltf/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gltf/main.cpp')
-rw-r--r--examples/gltf/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/gltf/main.cpp b/examples/gltf/main.cpp
index c80add25e..00dac1331 100644
--- a/examples/gltf/main.cpp
+++ b/examples/gltf/main.cpp
@@ -42,6 +42,7 @@
#include <exampleresources.h>
#include <Qt3DQuick/quickwindow.h>
#include <Qt3DRenderer/qrenderaspect.h>
+#include <Qt3DInput/QInputAspect>
#include <QGuiApplication>
#include <QtQml>
@@ -56,6 +57,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)));