After investigating Qt's code it turns out that the likely culprit is QDeclarativeVisualItemModel for not always freeing the delegates.
Adding the following code to src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp at line 999 fixes the leak:
QCoreApplication::sendPostedEvents(obj, QEvent::DeferredDelete);
After investigating Qt's code it turns out that the likely culprit is QDeclarativeVis ualItemModel for not always freeing the delegates.
Adding the following code to src/declarative /graphicsitems/ qdeclarativevis ualitemmodel. cpp at line 999 fixes the leak:
QCoreApplicatio n::sendPostedEv ents(obj, QEvent: :DeferredDelete );