I have set the icon for my PyQt application using self.setWindowIcon(QtGui.QIcon('icon.png'))
and it works fine when I run my code in PyCharm.
Next I converted my application to one file with PyInstaller:
pyinstaller.exe --onefile --windowed opc.py --name myapps
However, when running the executable the icon is not shown. What am I doing wrong ?
On left site code from PyCharm, on right site from one file (pyinstaller.exe --onefile --windowed opc.py --name myapps). Why is not the same ? I want *.png icon because is transparent.