summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/extending/chapter5-plugins/app.qml
blob: 51c1232e627a2f9f7f75e4bc8bf17658b8b1ba28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)
}