The answer is that you don't.
This is like the 10th thread on this issue.
In the worker thread use only QFile, QDir, QFileInfo, etc, and build the directory structure ( you have many choices ). Pass then to the GUI thread the dir structure to the GUI thread and let it update the model.
Or use a QDirModel.
Bookmarks