比如我,我用qt程序去读取一个.txt文件,当这个文件有改动时就响应,有什么 好的法子?
------解决方案--------------------
QFileSystemWatcher 类
------解决方案--------------------
不过这是在QT4.7
void QFileSystemWatcher::fileChanged ( const QString & path ) [signal]
This signal is emitted when the file at the specified path is modified, renamed or removed from disk.