Qt 6.11 is out! See what's new in the release
blog
QFileInfo Caching
-
Hi I have a simple technical question - in the official QFileInfo class reference page it says:
Note: To speed up performance, QFileInfo caches information about the file.
I need to retrieve file size and last modified date/time from files. Is this information cached upon construction of the QFileInfo object? If not is it cached after calling the relevant methods lastmodified() and size()?
If that information is cached in either of these ways, if I pass QFileInfo objects with cached data from a worker thread to a main gui thread using signals/slots will the information stay cached?
Thanks for the help.