QFileSystemWatcher watcher;
watcher.addPath("");
watcher.addPath("nonexisting");
watcher.addPaths(QStringList());
watcher.addPaths(QStringList("nonexisting"));
Running the code prints following messages
QFileSystemWatcher::addPath: path is empty inotify_add_watch("nonexisting") failed: "No such file or directory" QFileSystemWatcher::addPaths: list is empty inotify_add_watch("nonexisting") failed: "No such file or directory"
I don't think that any of those is relevant.