QFileSystemModel setRootPath method slow work
I have some problems with using QFileSystemModel in my Qt project. My application construct QFileSystemModel object and initialize it the way I found in Qt documentation:
QFileSystemModel *model = new QFileSystemModel;
I placed this code in my MainWindow constructor. The problem is that my application starts very slow course of setRootPath method (it doesnt response first 2-3 seconds, than it works properly). If I comment serRootPath method, everything works properly. Any ideas where is a problem?
What path is it ? Do you have any network drive connected to your computer ?