I came across a post a while back saying that you shouldn't store QFileInfo objects. I can't find the post but I seem to recall that the reason given was related to the caching feature. Reading the QFileInfo documentation it doesn't appear say that QFileInfo objects should not be stored, so I'm not sure if this information was correct.

I wanted to store information on a large number of files, and was going to store the QFileInfo objects for each file. However, I'm now cornered that this is the wrong thing to do and storing a large number of QFileInfo objects may cause performance issues.

Is it safe to store QFileInfo objects or would it be better to extract the information I need to a separate class and store that?