I'm looking to create a simple 'tail' type program which prints out new lines appended onto a file. Instead of constantly polling the file stat for an updated modified date, is there a way to catch a signal when:
- The file has been appended to
- The file has been renamed
- A new file of a given name appears
Those are the three requirements I need to design for. I found the QFileSystemWatcher will give me a signal for these 3 (I think)...but the signal is simple...no details as to what has changed so I still have to call stat. Any way to get this info from QFileSystemWatcher?