Generating PY from QRC Everytime a Resource file changes
-
wrote on 27 Nov 2020, 17:28 last edited by respect88
I have to manually run the command ("pyside2-rcc -o output.py input.qrc") to generate a new PY module from my QRC file every time a resource file changes that depends on my QRC. This is becoming super tedious. I am using QT Creator, is there some tool in QTCreator or something else that can watch for changes and run the pyside2-rcc command for me?
-
I have to manually run the command ("pyside2-rcc -o output.py input.qrc") to generate a new PY module from my QRC file every time a resource file changes that depends on my QRC. This is becoming super tedious. I am using QT Creator, is there some tool in QTCreator or something else that can watch for changes and run the pyside2-rcc command for me?
wrote on 27 Nov 2020, 17:51 last edited by JonB@respect88
I am guessing you have not set up in Creator/build environment correctly. I see an old post at https://stackoverflow.com/questions/22508491/a-py-file-which-compiled-from-qrc-file-using-pyside-rcc-does-not-work for old PySide1, but does it give steps to check work for you? -
wrote on 27 Nov 2020, 18:09 last edited by respect88
No, this did not help me. I don't see any steps for how to automate the pyside2-rcc command when a file listed in the QRC changes.
-
wrote 27 days ago last edited by
I made a batch script that I run every time I detect that the .qrc (or .ui) files have changed. It's all automated before launching the application.