summaryrefslogtreecommitdiffstats
path: root/examples/declarative/cppextensions/imageprovider/imageprovider-example.qml
blob: d774112f0c99ed8971615388ddc6b8c38cacbd0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import Qt 4.7
import "ImageProviderCore"
//![0]
ListView {
    width: 100; height: 100
    anchors.fill: parent

    model: myModel

    delegate: Component {
        Item {
            width: 100
            height: 50
            Text {
                text: "Loading..."
                anchors.centerIn: parent
            }
            Image {
                source: modelData
                sourceSize: "50x25"
            }
        }
    }
}
//![0]