How to write and read to/from a QResource file in Qt 5?

前端 未结 1 1345
失恋的感觉
失恋的感觉 2021-01-24 12:16

It\'s strange, I add desired file into the resources via Add Existing Files..., the file is there. I run qmake (\"Build->Run qmake\") to make the file available. The fi

相关标签:
1条回答
  • 2021-01-24 12:30

    The files saved in a qresource are read-only since they are part of the executable so you can not write or modify them.

    docs:

    Currently, Qt always stores the data directly in the executable, even on Windows, macOS, and iOS, where the operating system provides native support for resources. ...

    0 讨论(0)
提交回复
热议问题