R
R
RandomProgrammer2021-11-24 19:04:25
PyQt
RandomProgrammer, 2021-11-24 19:04:25

There are no icons in the build?

I am building my PyQt application with Pyintaller. I specified the necessary resources in the spec file, including a folder with icons. As a result, they are not in the build. In the program, I set the icons like this:

self.setWindowIcon(QtGui.QIcon(r"icons\icon.png"))
self.NewEvent.setIcon(QtGui.QIcon(r"icons\new.png"))

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question