qt - How to make an applicantion icon for c++ in Netbeans -


i trying create application icon c++ program using qt in netbeans. able change form icon, want change icon on .exe.

most of methods have found involves editing .rc , .pro files in project, .rc , .pro files can find in project folder, gets generated automatically , changes make gets lost.

any appreciated.

just posting solution cause needed long time figure out (won't perfect or beautiful solution works.)

1) create file called "resource.rc": (supposed icon.ico in same folder)

mainicon  icon  "icon.ico" 

2) call "windres resources.rc -o coff -o resources.res"

3) put resources.res project folder

4) right click on c++ project in netbeans -> properties -> build -> linker -> additional options: add "resources.res"

5) build.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -