4

I'm using Python 2.7 with PyQt. I'm setting a QtGui.QMainWindow() icon by using

self.setWindowIcon(QtGui.QIcon("icon.ico"))

Whenever I run my program, the icon looks very blurry, or pixelated. This is not what I want. I want the icon to be as sharp as Ubuntu's usual applications. To compare, I've made a .desktop file with the Icon parameter pointing to icon.ico. This one looks much sharper than PyQt's icon. Please compare. The icon you should focus on is the blue world map icon.

How can I make PyQt's icon as sharp as the other?

The blurry one The sharp one

Exeleration-G
  • 1,360
  • 16
  • 29

0 Answers0