diff options
Diffstat (limited to 'examples/declarative/tutorials/extending/chapter5-plugins/app.qml')
-rw-r--r-- | examples/declarative/tutorials/extending/chapter5-plugins/app.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/declarative/tutorials/extending/chapter5-plugins/app.qml b/examples/declarative/tutorials/extending/chapter5-plugins/app.qml new file mode 100644 index 0000000..51c1232 --- /dev/null +++ b/examples/declarative/tutorials/extending/chapter5-plugins/app.qml @@ -0,0 +1,13 @@ +import Qt 4.7 + +Item { + + Musician { + id: reddy + name: "Reddy the Rocker" + instrument: Instrument { type: "Guitar" } + } + + Component.onCompleted: console.log("Reddy plays the " + reddy.instrument.type) +} + |