Add sample qml application
[staging/HomeScreen.git] / sample-qml / main2.qml
diff --git a/sample-qml/main2.qml b/sample-qml/main2.qml
new file mode 100644 (file)
index 0000000..f2ff4c9
--- /dev/null
@@ -0,0 +1,27 @@
+import QtQuick 2.6
+import QtQuick.Window 2.2
+
+Window {
+    visible: true
+    width: 1080
+    height: 1920
+    title: qsTr("AGL sample qml app")
+
+    MainForm {
+        anchors.fill: parent
+        mouseArea.onClicked: {
+            Qt.quit();
+        }
+    }
+    onVisibleChanged: {
+        if(visible == true)
+        {
+            console.log("2:visible true")
+            console.log("maybe it is okay")
+        }
+        else{
+            console.log("visible2 false")
+        }
+    }
+
+}