PDA

View Full Version : windowIcon



Shien
22nd January 2011, 13:04
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.

setWindowIcon(QIcon("icon.png"));


Maybe there has to be extra code used?

tbscope
22nd January 2011, 13:08
Can the application find the icon?

You can try using the resource system.

Shien
22nd January 2011, 13:21
Thanks. Resource system helped.