summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/fillmode/fillmode.qml
blob: 8450bf29cd5798c114ff59bdbd2e7ee72125d38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt 4.6

Rectangle {
    id: screen; width: 750; height: 600; color: "gray"
    property string source: "face.png"

    Grid {
        columns: 3
        Image { width: 250; height: 300; source: screen.source; fillMode: Image.Stretch }
        Image { width: 250; height: 300; source: screen.source; fillMode: Image.PreserveAspectFit; smooth: true }
        Image { width: 250; height: 300; source: screen.source; fillMode: Image.PreserveAspectCrop }
        Image { width: 250; height: 300; source: screen.source; fillMode: Image.Tile; smooth: true }
        Image { width: 250; height: 300; source: screen.source; fillMode: Image.TileHorizontally }
        Image { width: 250; height: 300; source: screen.source; fillMode: Image.TileVertically }
    }
}