Details
-
Sub-task
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
Linux
Description
With the following example below, echo "foobar" > 1 into the directory does not cause QFileSystemWatcher to emit directoryChanged.
#include <QtGui> class Object : public QObject { Q_OBJECT public: Object() : QObject() { QFileSystemWatcher *watcher = new QFileSystemWatcher(this); watcher->addPath(QDir::current().absolutePath()); connect(watcher, SIGNAL(directoryChanged(const QString &)), this, SLOT(onDirModified(const QString &))); } public slots: void onDirModified(const QString &path) { qDebug() << path; } }; #include "main.moc" int main(int argc, char **argv) { QCoreApplication a(argc, argv); Object o; return a.exec(); }
Attachments
Issue Links
- is replaced by
-
QTBUG-8945 QFileSystemWatcher should notify when files are modified in a watched directory
-
- Closed
-
- is required for
-
QTBUG-6524 Windows: QFileSystemWatcher does not signal directoryChanged() when files are modified in a watched directory
-
- Closed
-