First of all, I have use Qt Designer to turn a picture into a .qrc file, Then I use pyrcc4 to turn this .qrc file into a .py resource.
pyrcc4 qrcfile.qrc -o pyfile.py
then import this .py file in my .py file. but after build with pyinstaller this resouce file does not work.
pyinstaller -F my_code.py
How to import resource file in PyQt and build with pyinstaller?