summaryrefslogtreecommitdiffstats
path: root/examples/materials
diff options
context:
space:
mode:
Diffstat (limited to 'examples/materials')
-rw-r--r--examples/materials/main.cpp2
-rw-r--r--examples/materials/materials.pro2
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/materials/main.cpp b/examples/materials/main.cpp
index 068b475f0..3adf1e08d 100644
--- a/examples/materials/main.cpp
+++ b/examples/materials/main.cpp
@@ -41,6 +41,7 @@
#include <Qt3DQuick/quickwindow.h>
#include <Qt3DRenderer/qrenderaspect.h>
+#include <Qt3DInput/QInputAspect>
#include <exampleresources.h>
@@ -57,6 +58,7 @@ int main(int argc, char* argv[])
Qt3D::Quick::QQmlAspectEngine engine;
engine.aspectEngine()->registerAspect(new Qt3D::QRenderAspect());
+ engine.aspectEngine()->registerAspect(new Qt3D::QInputAspect());
engine.aspectEngine()->initialize();
QVariantMap data;
data.insert(QStringLiteral("surface"), QVariant::fromValue(static_cast<QSurface *>(&view)));
diff --git a/examples/materials/materials.pro b/examples/materials/materials.pro
index d87485513..23d4d38a8 100644
--- a/examples/materials/materials.pro
+++ b/examples/materials/materials.pro
@@ -1,6 +1,6 @@
TEMPLATE = app
-QT += 3dcore 3drenderer 3dquick qml quick
+QT += 3dcore 3drenderer 3dinput 3dquick qml quick
include("../exampleresources/exampleresources.pri")