wysota, I want to cache some QDeclarativeItem * in a Hash.

I find this look up tends to be slow:
QDeclarativeItem *obj = this->rootObject()->findChild<QDeclarativeItem*>(item);


I thought I'd empty the cache each time a new qml file was loaded by my loader.

I found a work around, I delete from the cache items that have not been looked up after 10 minutes.