Unsolved 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 aMine
QObject class defined in C++ (or rather Python via PyQt5). If I overwrite thatmine
property withQQuickItem::setProperty
, that defaultMine
object seems to not be deleted. I tested this by printing a value from a timer started withQObject::startTimer
from theMine
C++ 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?