C++ (PyQt5) object set on property value not deleted after overwriting with QQuickItem::setProperty
-
Consider a Qml component with
property var mine: Mine {}at the root level using aMineQObject class defined in C++ (or rather Python via PyQt5). If I overwrite thatmineproperty withQQuickItem::setProperty, that defaultMineobject seems to not be deleted. I tested this by printing a value from a timer started withQObject::startTimerfrom theMineC++ definition.How is object deletion handled in Qml? Shouldn't the default value be deleting when I overwrite that property value with ```QQuickItem::setProperty````. Or maybe this has more to do with python keeping a reference around?