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. Can't write to Resource INI file

Can't write to Resource INI file

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 400 Views 3 Watching
  • 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
    MasterBlade
    wrote on last edited by
    #1

    Hello I was using QSettings to read and write to INI files.
    I also added these files to Resource files.

    However if I open these files with resource syntax like QSettings(":/a.ini", QSettings::IniFormat); it can read but can't write. (iswritable() returns false)
    But if it is opened with a plain path format QSettings("D:/a.ini", QSettings::IniFormat); There is no problem both reading and writing.

    I haven't used Qt for a while. It was all right in a previous version but I can't recall. Maybe 5.12.

    1 Reply Last reply
    0
    • CKurduC Offline
      CKurduC Offline
      CKurdu
      wrote on last edited by
      #2

      Hi MasterBlade
      The Resource system is not writable so it is impossible.

      You reap what you sow it

      1 Reply Last reply
      6
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        The Qt resources have never been writable. They are compiled and built in your application executable/library/as external file.

        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
        2

        • Login

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