Here is what I have:
After I installed all the software, I created simple Qt Application project, with Visual Studio: menu File | New | Project... and Qt4 Projects | Qt Application.
Build it, and here is the question: how to set application icon to my compiled exe file? I need to see specified ICO in explorer!
Old method with MyProject.pro not interested!!!
Create a .ico file with both 16x16 and 32x32-pixel versions of the icon (you can do this in Visual Studio).
Create a .rc file containing the following text:
IDI_ICON1 ICON DISCARDABLE "myIcon.ico"
Add the following to your .pro file
RC_FILE = myFile.rc
Run qmake.
Thanks.
This is what worked for me [VS2010, Qt Add-in 1.1.8], for an existing project:
As in the docs at http://doc.qt.io/qt-4.8/appicon.html :
Add icon file (myappico.ico) to source dir
Create myapp.rc file with the line
IDI_ICON1 ICON DISCARDABLE "myappico.ico"
[Of course, the file names are free to choose, as long as they are consistent]
Right-click project, choose Add | Existing item... and pick the RC file
Rebuild