first commit: set up basic project structure, created simple qt+qml application
[quickdice] / src / test.qml
diff --git a/src/test.qml b/src/test.qml
new file mode 100644 (file)
index 0000000..b1af437
--- /dev/null
@@ -0,0 +1,37 @@
+import Qt 4.7
+
+Rectangle {
+    width: 640
+    height: 480
+    color: defaultColor
+
+    Text {
+        id: name
+        text: message
+        anchors.centerIn: parent
+    }
+
+    Rectangle {
+        id: myButton
+        width: 250
+        height: 25
+        color: defaultColor
+
+        MouseArea {
+            anchors.fill: parent
+            onClicked: {
+                console.log("onMyButtonClicked");
+                action.trigger();
+            }
+
+        }
+
+        Text {
+            id: myButtonText
+            text: ">> Close button <<"
+            font.pointSize: 16
+            anchors.centerIn: parent
+        }
+    }
+
+}