Results 1 to 2 of 2

Thread: QFileSystemWatcher question

  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QFileSystemWatcher question

    Good Morning, today I'm trying to do something test using QFileSystemWatcher class.
    Is It possible to know what file is been deleted programmaticaly in signal directoryChanged? . Can you post me some code example, please? thank you.

    Nicola

  2. #2
    Join Date
    Mar 2011
    Posts
    53
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFileSystemWatcher question

    I was wondering about same matter, but I couldn't find the solution. I am also very curious does any one how to make that only last file which is copied to the watched directory is sending the signal? Becouse when I copy many files to the watched folder few signal are being emitted. However, I want to do some operation on those files only when all of them are copied to the directory. I figured only one simply but not to handsome solution: I just do "sleep(60)", but this is crapy becouse if files are copied after more then 60 seconds it won't work like it should. Is there any way to do it better?

Similar Threads

  1. QFIleSystemWatcher
    By jayreddy in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2009, 09:21
  2. QFileSystemWatcher
    By Kumosan in forum Qt Programming
    Replies: 2
    Last Post: 18th March 2008, 21:52
  3. QFileSystemWatcher
    By minty in forum Qt Programming
    Replies: 13
    Last Post: 22nd May 2007, 16:39
  4. Need help with QFileSystemWatcher
    By L.Marvell in forum Qt Programming
    Replies: 1
    Last Post: 18th August 2006, 14:19
  5. QFileSystemWatcher Question (Qt 4.1.2tp)
    By momesana in forum Qt Programming
    Replies: 8
    Last Post: 25th July 2006, 15:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.