title: Beginner on PyQt4 - No window icon
body: <p>I can't figure out why there is absolutely no icon displayed on my window. The icon is on the same directory as the python script. </p>
  
  <pre><code>import sys
  from PyQt4 import QtGui
  
  class Example(QtGui.QWidget):
  
      def __init__(self):
          super(Example, self).__init__()
  
          self.initUI()
  
      def initUI(self):
  
          self.setGeometry(300, 300, 250, 150)
          self.setWindowTitle('Icon_test')
          self.setWindowIcon(QtGui.QIcon('application-icon.png'))        
  
          self.show()
  
  def main():
  
      app = QtGui.QApplication(sys.argv)
      ex = Example()
      sys.exit(app.exec_())
  
  
  if __name__ == '__main__':
      main()    
  </code></pre>
  
  <p>Any help is much appreciated!</p>