Is it possible to write to a qrc file dynamically?
-
I've tried to open a qrc file for writing but it didn't work.
with
errorString()
returningunkown error
.Is there another way to do it?
-
@Hasan-Al-Baghdadi
no you can not.qrc file is really only a xml based text file that is used to create binary data of your listed files/filetree to either pack into your executable or an external binary resource.
That is generated during compilation. Therefore "readonly"
-
@Hasan-Al-Baghdadi if your issue is solved (or at least isn't going to be the way you expected) please don't forget to mark the post as solved.
-
@Pablo-J.-Rogina my bad
-
@Hasan-Al-Baghdadi
Hi
What was the use case ?
I mean, what did you want to write back to rc ?
Just curious. -
In that case you should have a default file that you have in your .qrc file and then use QStandardPaths to store it in and use it from a sensible place.