QFileSystemModel setRootPath method slow work
-
Hello guys!
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;
model->setRootPath(QDir::currentPath());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?
-
Hi,
What path is it ? Do you have any network drive connected to your computer ?