EDIT: I of course mean QHash<QString, QWeakPtr<ThemePrivate>> and then keeping a strong ref in the public Theme object. I know what I mean anyway. I'll try and submit a review when I've got through the other hundred items more important items in my TODO list.