From 942e786f66f610469bbda89f53cabb98185772d1 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 7 Dec 2015 23:10:20 +0100 Subject: Add first steps for isHit detection --- qml/MainForm.ui.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'qml/MainForm.ui.qml') diff --git a/qml/MainForm.ui.qml b/qml/MainForm.ui.qml index 19cc165..981a38f 100644 --- a/qml/MainForm.ui.qml +++ b/qml/MainForm.ui.qml @@ -19,6 +19,14 @@ MMScene { color: "lightgrey" } + MouseArea{ + id: mouseArea + anchors.fill: parent + onPressed: { + //console.log("Scene clicked at X: " + mouse.x + " y" + mouse.y) + mousePressed(mouse.x, mouse.y); + } + } RowLayout { -- cgit v1.2.3-70-g09d2