from PyQt5 import QtWidgets, QtGui from PyQt5.QtWidgets import * from PyQt5.QtCore import * class Application(QMainWindow): def __init__(self): super(Application, self).__init__() self.setWindowIcon(QtGui.QIcon('icon.png'))
I am trying to set the window icon (top left of the window), but instead the normal icon has disappeared.
I tried with many resolutions (8x8, 16x16, 32x32, 64x64) and extensions (.png and .ico).
What am I doing wrong?
source share