GothmoG
1st October 2012, 17:24
Hi,
I use QFileSystemModel with QTreeView, and i make setRootPath on the model, like below :
QFileSystemModel* model = new QFileSystemModel;
model->setRootPath(QDir::currentPath());
ui->treeView->setModel(model);
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.
I use QFileSystemModel with QTreeView, and i make setRootPath on the model, like below :
QFileSystemModel* model = new QFileSystemModel;
model->setRootPath(QDir::currentPath());
ui->treeView->setModel(model);
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.