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. After copying the file Qt-th can not change the file.
QtWS25 Last Chance

After copying the file Qt-th can not change the file.

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 263 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.
  • M Offline
    M Offline
    Mikeeeeee
    wrote on last edited by
    #1

    Good afternoon.
    Copying file from resources. The file is read-only.
    How to make this file can be changed?

    jsulmJ 1 Reply Last reply
    0
    • M Mikeeeeee

      Good afternoon.
      Copying file from resources. The file is read-only.
      How to make this file can be changed?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Mikeeeeee It's all in the documentation: https://doc.qt.io/qt-5/qfile.html#setPermissions

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • M Offline
        M Offline
        Mikeeeeee
        wrote on last edited by
        #3
        QFile f1(dbAdress);
            f1.setPermissions(QFileDevice::WriteOther);
        
        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          Yes if dbAdress is the new location on the disk. it should work.

          1 Reply Last reply
          1

          • Login

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