Questions tagged [qfilesystemwatcher]

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.

47 questions
0
votes
1 answer

"QFileSystemWatcher: failed to add paths" but still works

I need to monitore a filesystem, i have a function which browse folders and files recursively and which add theirs path to my QFileSystemWatcher : void watchFileSystem(const QDir& dir, QFileSystemWatcher& watcher) { …
kobhqlt
  • 78
  • 1
  • 6
-1
votes
1 answer

QFileSystemWatcher working only in main()

I am trying to use QFileSystemWatcher like in the following example : How to use QFileSystemWatcher to monitor a folder for change My issue is that the watcher does work when I create it in the main() function like in the following : #include…
Vince
  • 36
  • 1
  • 4
1 2 3
4