I'm using qt on windows with mingw32-make.

I'm trying to set the main application icon in windows apps like documented in the help.

If I run 'rcc myapp.rc' I get 'RCC Parse Error: 'myapp.rc' Line: 1 Column: 2 [error occurred while parsing element]'
This is myapp.rc:
Qt Code:
  1. IDI_ICON1 ICON DISCARDABLE "myapp.ico"
To copy to clipboard, switch view to plain text mode 

If I don't use rcc and just try to add the 'RC_FILE=myapp.rc' I get the error 'no rule to make target myapp.rc needed by build/myapp_res.o'.

Now what is the correct way to set an application icon on windows please?

(ps. I wish windows builds would automatically add the default qt mainicon in stead so that 'empty' doswindow icon doesn't show up)

Thanks.