My Qt application contains a Main Window. I added resource into project and added an icon to the resource. From the main window source file I used the following line to load
Put qico.dll in the imageformats directore near executable.
qico.dll
imageformats
MyAppDir\YourApp.exe MyAppDir\imageformats\qico.dll
On future, every format except of png should have dll. For example qgif.dll and so on.
png
qgif.dll