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

QFile (fileengine) and QFileSystemWatcher don't play nicely together (Linux inotify)

    XMLWordPrintable

Details

    Description

      Using QFileSystemWatcher on a directory is supposed to notify when changes to files happen in that directory. If a file is 'touched' this is the case but if a file is written to using QFile then this does not happen.

      I have attached small sample programs that demonstrate the problem.

      If QFileSystemWatcher monitors the file it gets the notifications as expected. If it monitors the directory then 'touch' triggers a notification but using QFile to write to the files does not trigger a notification.

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            lramsay Lincoln Ramsay (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes