Packing with Pyinstaller - PyQt5 setStyle is ignored

I have a similar problem described here after updating python, pyistaller, pyqt5, pyqt5-tools. Before I get the desired “Windows Vista style” without app.setStyle('windowsvista') when I run the compiled stand-alone executable.

Now I got Windows Classic Style . If I run the application in PyCharm, it will use the desired “Windows Vista style” .

Currently installed on Win7 64bit:

Python: 3.6.4

PyInstaller: 3.3.1

PyQt5: 5.10

pyqt5-tools: 5.9.0.1.2 (updating to 5.9.1.1 does not work)

Does anyone know why PyInstaller ignored the style?

+5
source share
1 answer

The error seems to have been fixed in an unrelated PyInstaller branch. More details can be found on the GitHub response request session , but reinstalling PyInstaller using pip install https://github.com/bjones1/pyinstaller/archive/pyqt5_fix.zip fixed the same style problems for me on a Mac.

+3
source

Source: https://habr.com/ru/post/1275176/


All Articles