hi, I am trying to add window title. But nothing happens.

I added picture's file into the same folder as code files. I used only one code line.
Qt Code:
  1. setWindowIcon(QIcon("icon.png"));
To copy to clipboard, switch view to plain text mode 

Maybe there has to be extra code used?