summaryrefslogtreecommitdiffstats
path: root/examples/qt3d
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-01-21 09:44:44 +0100
committerPaul Lemire <paul.lemire@kdab.com>2016-01-23 07:43:27 +0000
commit5befb16a797fe344007e47fc60349271c2a8e8bd (patch)
tree8a01cca93d46b6ba2b96a24fe13f6bfc0f4be041 /examples/qt3d
parentda711b7d4dd1279d65d4a86db8bc59a47278f413 (diff)
assimp: Add QInputSettings component
Inputs now working without setData Change-Id: I5aba21a7f2d29090106df50a679f7933d84003bd Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d')
-rw-r--r--examples/qt3d/assimp/main.qml17
1 files changed, 11 insertions, 6 deletions
diff --git a/examples/qt3d/assimp/main.qml b/examples/qt3d/assimp/main.qml
index 9eaf21464..cf3b86f81 100644
--- a/examples/qt3d/assimp/main.qml
+++ b/examples/qt3d/assimp/main.qml
@@ -38,15 +38,20 @@ import QtQuick 2.0 as Quick
import Qt3D.Core 2.0
import Qt3D.Render 2.0
import Qt3D.Examples 2.0
+import Qt3D.Input 2.0
Entity
{
- components: FrameGraph {
- activeFrameGraph: ForwardRenderer {
- clearColor: Qt.rgba(0, 0.5, 1, 1)
- camera: camera
- }
- }
+ components: [
+ FrameGraph {
+ activeFrameGraph: ForwardRenderer {
+ clearColor: Qt.rgba(0, 0.5, 1, 1)
+ camera: camera
+ }
+ },
+ // Event Source will be set by the Qt3DQuickWindow
+ InputSettings { }
+ ]
Camera {
id: camera