Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Writing to QlockFile
QtWS25 Last Chance

Writing to QlockFile

Scheduled Pinned Locked Moved General and Desktop
qlockfiletext file
2 Posts 2 Posters 680 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ika2112
    wrote on last edited by
    #1

    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.
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Is your file opened in ReadWrite mode ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved