[Qt-interest] Unable to use .rc file for application icon.

bharath.narayan at nokia.com bharath.narayan at nokia.com
Wed Jul 29 10:34:07 CEST 2009


Hi,

It worked. Thanks.

Two quick questions:
1. Will this work on Linux also? (and other platforms) - If no then how do I make it work the same. (I understand that the icons are different in various platforms).
2. Is there any free tool to generated the icons. (the one below is a commercial).

Thanks again,
-Bharath


-----Original Message-----
From: ext Oliver Demetz [mailto:forenbeitraege at oliverdemetz.de] 
Sent: Wednesday, July 29, 2009 1:46 PM
To: Narayan Bharath (Nokia-D-MSW/Bangalore)
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Unable to use .rc file for application icon.

Hmmm, for me this works.

Seems like your icon file is invalid.

Have a look there:

http://msdn.microsoft.com/en-us/library/ms997636.aspx

and to the tool linked on the first site:

http://www.gamani.com/gmgdown.htm

I used this just today to follow your problem and for me it worked 
immediately.

Regards,
Oliver


bharath.narayan at nokia.com schrieb:
> Hi there,
>  
> I have an application (with a main window and other things). I have 
> created a 64x64 icon file for the application icon.
>  
> I have added this in myrcfile.rc file: ICON1_MYICON ICON "appicon.ico"
>  
> I have included the file in my .pro file: RC_FILE = myrcfile.rc
>  
> I am using Mingw with QtCreator.
>  
> When I compile my application, I get an error saying:
> *windres*: *icon* *file* `appicon.ico' *does* *not* *contain* *icon* *data*
>  
> What could be wrong here?
>  
> Am I missing something?
>  
> Thanks,
> -Bharath
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest





More information about the Qt-interest-old mailing list