aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktext/data/loaderActiveOnVisible.qml
blob: 915dc21d84dc4eb51587294b473cf1290961d2d1 (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
import QtQuick

Rectangle {
    id: root
    visible: false
    width: 320
    height: 240
    Flickable {
        id: flickable
        anchors {
            fill: root
            margins: 10
        }
        contentHeight: loader.height

        Loader {
            id: loader
            width: flickable.width
            active: root.visible
            source: "long.qml"
        }
    }
    Component.onCompleted: visible = true
}