Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Is possible to set QFile share permission?

    General and Desktop
    2
    4
    2651
    Loading More Posts
    • 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.
    • A
      antonyprojr last edited by

      I’m developing a program that uses QFile to write into a file, and I want to lock that file from being read or written by another application, for example: while my application is writing to a .txt file, lock that file from being read or written by Notepad or any other app. Does Qt provides a cross plataform or Windows specific way to do this? I’ve searched at the QFile documentation but I don’t found it!

      1 Reply Last reply Reply Quote 0
      • B
        bagipro last edited by

        http://qt-project.org/forums/viewthread/24307

        1 Reply Last reply Reply Quote 0
        • A
          antonyprojr last edited by

          Extracted from: http://doc.qt.digia.com/solutions/3/qtlockedfile/qtlockedfile.html "The file locks are advisory. This means that nothing prevents another process from manipulating a locked file using QFile or file system functions offered by the OS. Serialization is only guaranteed if all processes that access the file use QLockedFile." And i want some way to lock any another process to use that file, not only the process that uses QtLockedFile. Is this possible?

          1 Reply Last reply Reply Quote 0
          • B
            bagipro last edited by

            http://www.qtcentre.org/archive/index.php/t-21447.html

            1 Reply Last reply Reply Quote 0
            • First post
              Last post