As I am facing data loss, I have a corrupted resource.qrc file when I tried recovering it and I also lost my graphics files (.png, .jpg) - but my Qt application is running fine.
The problem is when I need to edit the .ui files, I have a corrupted resource.qrc file. My resources_rc.py file is all well, which I created by the following command:
pyrcc4 -o resource.py resource.qrc
So is there any way I can get my resource.qrc back from the resources_rc.py file?
The script below will reconstruct a qrc file and all the original resources from a
resources_rc.pyfile generated bypyrcc. It will work with PyQt4/5 and Python 2/3. The files will be written to a temporary directory in the same directory as the givenresources_rc.pyfile.Usage:
qrc_gen.py: