summaryrefslogtreecommitdiffstats
path: root/examples/declarative/imageprovider/imageprovider-example.qml
blob: a895821acbd28b42fb369d8387f199994bdd37e9 (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
import Qt 4.6
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]