summaryrefslogtreecommitdiffstats
path: root/examples/declarative/spinner/main.qml
blob: 6be567a0a57a56f411cbacbaff40015952429ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import Qt 4.7
import "content"

Rectangle {
    width: 240; height: 320
    Column {
        y: 20; x: 20; spacing: 20
        Spinner {
            id: spinner
            width: 200; height: 240
            focus: true
            model: 20
            itemHeight: 30
            delegate: Text { font.pixelSize: 25; text: index; height: 30 }
        }
        Text { text: "Current item index: " + spinner.currentIndex }
    }
}