aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/functionCallInitCrash.qml
blob: 6868f5e3bcfc9866372bfec3e957085ee5a69558 (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
import QtQuick
import QtQuick.Controls.Basic

pragma ComponentBehavior: Bound

Item {
    Component {
        id: paneComp
        Pane {
            Item {
                id: stack
                function hhh() {
                }
            }
            Component.onDestruction: stack.hhh()
        }
    }

    Component {
        id: loaderComp
        Loader {
            sourceComponent: paneComp
        }
    }

    Component.onCompleted: {
        loaderComp.createObject(null, {})
        loaderComp.createObject(null, {})
        loaderComp.createObject(null, {})
        gc()
    }
}