Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38757

QFileSystemWatcher doesn't emit directoryChanged when a file in the watched folder is modified

    XMLWordPrintable

Details

    Description

      QFileSystemWatcher doesn't emit directoryChanged signal when a file in the watched folder is modified. Steps to reproduce:

      1. Create a QFileSystemWatcher to watch a certain folder. Connect to directoryChanged.
      2. Create and close a new empty file in the folder. directoryChanged is emitted.
      3. Modify the file (add text) with, say, a text editor. Save it and close. directoryChanged is not emitted, although it's supposed to be as per documentation. Explorer detects the change and displays it immediately.

      P. S. fileChanged signal is emitted if you subscribe to that particular file, but subscribing to every file doesn't seem like a good idea for folders with a lot of files.
      P. P. S. I haven't tested it on Linux or Mac yet.

      Attachments

        1. qtbug38757.diff
          0.9 kB
          Friedemann Kleint
        2. qtbug38757.zip
          2 kB
          Friedemann Kleint
        3. qtbug38757-minimal-testcase.zip
          1 kB
          lassos

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              violetgiraffe Alex
              Votes:
              7 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes