With Qt Creator I created a .ui file and set the main window icon referred to a .ico in res.qrc file.
Then in PyCharm I used pyuic&pyrcc to convert qt files to .py files.
However after I start up my app, I got an import error saying that No module named res_rc in converted ui.py.
I don't know why this time I got the import error. Before today I could really use res_rc.py in my severval pyqt5 examples .
Did I miss something that vital ?
no module named res_rc after compile res.qrc file using pyrrc5.exe
418 Views Asked by Lisen At
2
It seems that files like
res_rc.pyandui.pyshould be in the same folder withapp.pyand now it works fine.Previously I put
res_rc.pyandui.pyin a sub folder