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

Rectangle {
    id: window

    width: 800; height: 480
    color: "#cdcdcd"

    Grid {
        id: grid
        anchors { fill: parent; topMargin: 10; leftMargin: 10; rightMargin: 10; bottomMargin: 10 }
        columns: 3; rows: 2; spacing: 20

        QtLogo { fillMode: Image.Stretch; label: "Stretch" }
        QtLogo { fillMode: Image.PreserveAspectFit; label: "PreserveAspectFit" }
        QtLogo { fillMode: Image.PreserveAspectCrop; label: "PreserveAspectCrop" }
        QtLogo { fillMode: Image.Tile; label: "Tile" }
        QtLogo { fillMode: Image.TileHorizontally; label: "TileHorizontally" }
        QtLogo { fillMode: Image.TileVertically; label: "TileVertically" }
    }
}