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. How to wrıte to text file without add resource file?
Qt 6.11 is out! See what's new in the release blog

How to wrıte to text file without add resource file?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 254 Views 1 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.
  • T Offline
    T Offline
    TheCeylann
    wrote on last edited by
    #1

    I have a text file that can be modified by the user. When I run my project as .exe, I cannot write to my text file that I added as a resource. I learned resources is read-olny. Is there any way I can do this?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      well, you write it to a new file and let the user modify that.
      On start up, if app sees this new file it uses that instead of the one in the resource.
      You can use
      https://doc.qt.io/qt-6/qstandardpaths.html
      to find good place for the file.

      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