File manager with size computation at selection
-
Hello,
I would like to implement a file manager that is able to compute the size of the selected elements in real time, at the selection. So far, when a folder is selected, I iterate recursively on all of its contents, trying to call fetchMore if necessary (i.e. canFetchMore returns true), but I am not sure this is the best implementation. Furthermore, I need to iterate twice : first to fetch all the contents, then to navigate through the folder structure. The navigation through the folder structure is done in a separated voidable thread, meanwhile the fetchMore is done in the main thread (because it seems that fetchMore starts QTimer, functionnality not.
Have you some idea about a better implementation ?
Thank you a lot !