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

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" }
    }
}