Nominate our 2022 Qt Champions!

Writing to QlockFile

  • Hi,

    I'm using the Qlockfile to lock a generic .txt file from being used by other application. I'm able to lock & read the file. However, it does not allow me to write into the file. Is it the lock function restrict any access to the file including the locker itself? If yes, is there any workaround for me to solve this? the process that i would like to perform are:

    1. Locking the file
    2. Read from the file
    3. Write into the file
    4. Save the file
    5. Unlock the file.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Is your file opened in ReadWrite mode ?

Log in to reply