aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/data/pressDelayWithLoader.qml
blob: 7ef4e70c95027411e000c9f35d2b9aad7a8accd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick 2.0

Loader {
    id: loader

    width: 300
    height: 300

    sourceComponent: Flickable {
        pressDelay: 1000
        contentWidth: loader.width
        contentHeight: loader.height
        MouseArea {
            anchors.fill: parent
            onPressed: loader.sourceComponent = null
        }
    }
}