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. why QFileSystemWatcher not tell the action of file or directory?
Forum Updated to NodeBB v4.3 + New Features

why QFileSystemWatcher not tell the action of file or directory?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 223 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.
  • M Offline
    M Offline
    Mozzie
    wrote on 30 May 2020, 10:11 last edited by
    #1

    hi,
    I have used windows api implement something like QFileSystemWatcher before, I know windows can tell us what operation is . but QFileSystemWatcher not tell the action of file or directory,
    Do other operating systems not have this feature?

    if I rename a dir, the directoryChanged() just tell me the dir name after I modified. so how to know what is the old name when you what to sync between dirs?

    and there is another problem, when I added some dir by using addPath(), why I can not remove this dir by using windows file manager?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 30 May 2020, 11:29 last edited by
      #2

      @Mozzie said in why QFileSystemWatcher not tell the action of file or directory?:

      Do other operating systems not have this feature?

      correct

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      M 1 Reply Last reply 31 May 2020, 04:21
      2
      • C Christian Ehrlicher
        30 May 2020, 11:29

        @Mozzie said in why QFileSystemWatcher not tell the action of file or directory?:

        Do other operating systems not have this feature?

        correct

        M Offline
        M Offline
        Mozzie
        wrote on 31 May 2020, 04:21 last edited by
        #3

        @Christian-Ehrlicher
        thanks.

        1 Reply Last reply
        0

        1/3

        30 May 2020, 10:11

        • Login

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