summaryrefslogtreecommitdiffstats
path: root/demos/declarative/samegame/content/Dialog.qml
blob: 72c790046dee2867f6bb477fdcd29115f6923748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Qt 4.6

Rectangle {
    id: page
    color: "white"; border.width: 1; width: MyText.width + 20; height: 60;
    property string text: "Hello World!"
    opacity: 0
    opacity: Behavior { 
        SequentialAnimation {
            NumberAnimation {property: "opacity"; from: 0; duration: 1500 }
            NumberAnimation {property: "opacity"; to: 0;  duration: 1500 }
        }
    }
    Text { id: MyText; anchors.centerIn: parent; text: parent.text }
}