A QFileSystemWatcher is a class from the Qt toolkit which provides an interface for monitoring files and directories for modifications.
QFileSystemWatcher monitors the file system for changes to files and directories by watching a list of specified paths.
It emits signals whenever a file has been modified, renamed or removed from disk, or when a directory or its contents is modified or removed.
The official Qt documenation can be found here for Qt 4.8 or here for Qt 5.