qtdeclarative/tests/auto/qml/qmlcppcodegen/data/functionCallInitCrash.qml

33 lines
601 B
QML
Raw Permalink Normal View History

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()
}
}