summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/extending/chapter1-basics/app.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/tutorials/extending/chapter1-basics/app.qml')
-rw-r--r--examples/declarative/tutorials/extending/chapter1-basics/app.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/declarative/tutorials/extending/chapter1-basics/app.qml b/examples/declarative/tutorials/extending/chapter1-basics/app.qml
new file mode 100644
index 0000000..15dcd2d
--- /dev/null
+++ b/examples/declarative/tutorials/extending/chapter1-basics/app.qml
@@ -0,0 +1,17 @@
+import Music 1.0
+import Qt 4.7
+
+Rectangle {
+ width: 300; height: 200
+
+ Musician {
+ id: aMusician
+ name: "Reddy the Rocker"
+ instrument: "Guitar"
+ }
+
+ Text {
+ anchors.fill: parent
+ text: aMusician.name + " plays the " + aMusician.instrument
+ }
+}