Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problems with QFileSystemWatcher
Qt 6.11 is out! See what's new in the release blog

Problems with QFileSystemWatcher

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stephane78
    wrote on last edited by
    #1

    Hi,
    I have made a little app to test QFileSystemWatcher.I have problems with it:
    If I create a new folder "folder" and I rename it "folder2" and then rename it again "folder" the QFileSystemWatcher doesn't emit a directorychanged signal and I cannot detect changes within this folder too. Is it possible to fix QFileSystemWatcher ? because I need it in several apps. I haven't already look at the sources of QFileSystemWatcher but I will do it, because if this class is not fixed, I will use instead of it, an external class that uses low level apis(win32,linux)

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Your description is not really clear: do you create a new folder inside a folder you're monitoring?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stephane78
        wrote on last edited by stephane78
        #3

        Yes I create or rename a subdirectory in a directory that I monitor...the problem is that if the directory that I rename take a name that has already existed before it does'nt detect the change of the subdirectory although it detects the change in the parent folder...
        because of this problem I have corrected ,compiled and tested https://code.google.com/archive/p/simplefilewatcher/downloads
        and compiled https://github.com/emcrisostomo/fswatch (libfswatch) and tested that and I like the first, simplefilewatcher, and I will modify it and probably use it instead of QFileSystemWatcher because it has not the bug of QFileSystemWatcher....
        I would have prefered to use QFileSystemWatcher, but it is bugged...

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You should file a bug report, so it is fixed in a future release

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            stephane78
            wrote on last edited by
            #5

            I don't know how to report a bug ? should I subscribe to the mailing list to report a bug ?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stephane78
              wrote on last edited by
              #6

              ok I have made the report QTBUG-52226....

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved