summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/gradient.qml
blob: 168398d34f4f50b0ce5c133b76fb08b9e1927319 (plain)
1
2
3
4
5
6
7
8
9
10
import Qt 4.7

Rectangle {
    width: 100; height: 100
    gradient: Gradient {
        GradientStop { position: 0.0; color: "red" }
        GradientStop { position: 0.33; color: "yellow" }
        GradientStop { position: 1.0; color: "green" }
    }
}