Hi,

I am trying to display "/" in a treeView. I have a QFileSystemModel with setRootIndex("/"). I want to do some deep file search on this fileSystemModel. So create a signal/slot connection
Qt Code:
  1. connect(fileModel, SIGNAL(directoryLoaded(QString), this, on_dir_tree_loaded() ))
To copy to clipboard, switch view to plain text mode 

The problem is that the internal QFileSystemWatcher attached to QFileSystemModel never finishes reading /proc and spits out error messages like
Qt Code:
  1. QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Permission denied
  2. QFileSystemWatcher: failed to add paths: /proc/57/task/57/ns
To copy to clipboard, switch view to plain text mode 

I guess that there are new system processes continuously making entries inside /proc and are causing the problem.

How can I exclude /proc being watched, or alternatively get around this problem?

Cheers,
Kodanda