I want to know if a file was opened by user for reading (double click or open with ...), I am coding a C++
application with Qt Creator on Windows, after some research I found QFileSystemWatche, but it let me know only if a change was happened in the specific folder.
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.
How to know if the file was opened? or is there a way to modify a file when it is opened or closed?
Any idea please!!!