QFileSystemWatcher in Background/Thread
-
wrote on 4 Jun 2013, 19:25 last edited by
Hi!
I want to create a thread, running in background to poll FileSystemWatcher changes. Is it possible to catch a FileSystemChange in a background-thread? Any Code-Examples?
Thank you very much!
-
wrote on 4 Jun 2013, 20:00 last edited by
A nice alternative on Linux is iNotify. QFileSystemWatcher docs mention overhead, and iNotify seems to run with no impact on my Ubuntu box. YMMV.
Peter
-
wrote on 5 Jun 2013, 10:52 last edited by
iNotify is not exactly a cross-platform solution though.
Did you notice the file "src/corelib/io/qfilesystemwatcher_inotify.cpp" in the qtbase tree? Looks like QFileSystemWatcher will also use inotify;)
-
wrote on 11 Jun 2013, 18:04 last edited by
So...is it possible in a background thread? A QRunnable or QThread?
1/4