I'm using QFileSystemModel and QTreeView to display files tree from a shared network location (Samba).
Qt Code:
  1. Model->setRootPath("//HostName");
  2. TreeView->setModel(Model);
  3. TreeView->setRootIndex(Model->index("//HostName"));
To copy to clipboard, switch view to plain text mode 
The code works fine and I got the file tree. However, it can not automatically pick up the changes there. For example, if I create a new file there, the tree don't display this new file.

When I set the path to a directory on local hard drive, like "D:/temp". It works. It picks up the changes and update itself.

Any idea how can I pick up changes from a shared network location and refresh the model/tree?