PYQT4 - How do I compile and import a qrc file into my program?

前端 未结 5 1172
余生分开走
余生分开走 2021-02-01 23:05

I\'m having trouble importing a resource file. I\'m using pyqt4 with monkey studio and I am trying to import a png image. When I run the program I get an import error like

5条回答
  •  滥情空心
    2021-02-02 00:10

    In Pyqt5 this command can be used Pyrcc5 input_file.qrc -o Out_file.py

    We need to convert that qrc file into python file and then it can be imported to your code

提交回复
热议问题