summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/extending/chapter1-basics/app.qml
blob: 15dcd2d36615945ec38da6aa8dbf010ed756a459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
    }
}