[PyQt] Setting the window icon of a QDialog or QWidget using setWindowIcon() method

Guruprasad lgp171188 at gmail.com
Mon Dec 13 18:06:49 GMT 2010

Hi all,
I am a PyQt4 beginner just in the process of learning. I came across
this method setWindowIcon() that is used to set the icon of a
window/dialog/widget. But calling that method before calling the
show() method doesn't set the icon, but calling it after a call to the
show() method, sets it properly. Is there any explanation for this

I am using PyQt4 version available on Ubuntu 10.04 and use Gnome
desktop environment.

Thank you.


More information about the PyQt mailing list