Do you mean the application icon, which is displayed from the windows for the executable file, in the taskbar and on the alt + tab?
Create yourprojekt.rc and point to the icon:
IDI_ICON1 ICON DISCARDABLE "./youricon.ico"
In the projektfile qmake tip, use a resource file:
RC_FILE = YourProjekt.rc
For youricon.ico I recommend turning on the icon in 16px, 24px, 32px, 48px and 256px. Afaik are the sizes used by windows for small characters (16 pixels) for extra large characters (256 pixels).
If you do not have an image of a certain size in your ico, the windows will resize the other to that size - but increasing or decreasing 32px to / from 256px in most cases does not look so pretty.
source share