Hi,

I use QFileSystemModel with QTreeView, and i make setRootPath on the model, like below :

Qt Code:
  1. QFileSystemModel* model = new QFileSystemModel;
  2. model->setRootPath(QDir::currentPath());
  3. ui->treeView->setModel(model);
To copy to clipboard, switch view to plain text mode 

And when my network drives are not connected it takes long time to display the QTreeView the first time.

Is there a way to avoid that? Or to detect the drives which are not connected and not display them in the tree view ?

Thanks for the help,

Hugo.