Hi,
I use QFileSystemModel with QTreeView, and i make setRootPath on the model, like below :
Qt Code:
QFileSystemModel* model = new QFileSystemModel; 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.
Bookmarks