Hi,
is there any way I can lock a file with Qt libraries?
For "lock" I mean that when my app opens the file for writing, no other process can write on it. This happens for many Windows applications working with files.
I've tried QtLockedFile, but it only works among processes using QtLockedFile to access the file.
I've tried to call the native Windows API LockFile but it does not work because I can't give it a valid HANDLE to the file (QFile::handle() returns rubbish).
How can I fix this?
Thank you
Giacomo
Bookmarks