Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.0
-
None
-
N/A
-
qtdeclarative/stable: 686f144ceea9ee219f5922c4b2eadb4eba890cbf
Description
Run the following app with qmlscene => ~QQuickXmlListModel() never gets called.
// main.qml import QtQuick 2.1 import QtQuick.Window 2.1 import QtQuick.XmlListModel 2.0 Window { XmlListModel { id: model Component.onCompleted: console.log("Component.onCompleted:", model) Component.onDestruction: console.log("Component.onDestruction:", model) } }
If the top level item is an Item instead, the QQuickXmlListModel instance gets properly destructed.