aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickbehaviors/data/delete.qml
blob: 1bf0267b8449b0044abbd84cf28266f9ba8b7849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import QtQuick 2.12

Item {
    visible: true
    width: 640
    height: 480

    Component.onCompleted: {
            myLoader.active = false
    }

    Loader {
        id: myLoader

        active: true
        sourceComponent: Item {
            width: 100
            height: 100
            id: myPopup

            NumberAnimation {
                id: anim
            }

            Rectangle {
                color: "black"
                Component.onCompleted: {
                    opacity = 20
                }

                Behavior on opacity {
                    animation: anim
                }
            }
        }
    }
}