

Member Function Documentation QFileSystemWatcher:: QFileSystemWatcher(const QStringList & paths, QObject * parent = nullptr)Ĭonstructs a new file system watcher object with the given parent which monitors the specified paths list.

macOS uses a different backend and does not suffer from this issue. Also note that your process may have other file descriptors open in addition to the ones for files being monitored, and these other open descriptors also count in the total. This means that addPath() and addPaths() will fail if your process tries to add more than 256 files or directories to the file system monitor. Some system limits the number of open file descriptors to 256 by default. On all BSD variants, for example, an open file descriptor is required for each monitored file. This implies there is a limit to the number of files and directories your process can monitor simultaneously.
