Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.9.0 Beta1
-
None
-
7d510cfc0 (dev), 816b43c18 (6.9)
Description
Please click the button. After one second, this crashes on 6.9.0 beta1. Does not crash on 6.8.1.
I suppose qmlsc only kicks in with 6.9.0 here?
Workaround is to delay the destroy call via Qt.callLater.
import QtQuick import QtQuick.Controls Window { id: root width: 640 height: 480 visible: true title: qsTr("Hello World") Button { text: "Click me" onClicked: singleShot.createObject(root) } Component { id: singleShot Timer { id: lockTimer interval: 1000 running: true onTriggered: lockTimer.destroy() } } }
Attachments
Issue Links
- relates to
-
QTBUG-132499 assertion failure in callQObjectMethodAsVariant when using qml cache
-
- Closed
-