[Qt-interest] embeding version number

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Wed Mar 3 19:16:47 CET 2010


Steven Doerfler wrote on Wednesday, March 03, 2010 6:01 PM:

> On 3/3/2010 10:56 AM, Oliver.Knoll at comit.ch wrote:
>> 
>> I think initially I wrote that qmake could also process Microsoft
>> *.rc files (by calling rc.exe for you), but I think I confused them
>> with *.rcc Qt resource files!  
>> 
> 
> It can do both.  For Windows .rc files, add this to your .pro file:
> 
> RC_FILE = filename.rc

Ah thank you for clarifying this. I /knew/ I had read this somewhere in the Qt docs ;)

Unfortunatelly the Qt docs state in http://doc.trolltech.com/4.6/qmake-project-files.html:

"RESOURCES  A list of resource (.rc) files to be included in the final project. See the The Qt Resource System for more information about these files."

I think this should read (.rcc) here, even though .rcc is just the recommended suffix: "For an external binary resource to be created you must create the resource data (commonly given the .rcc extension)..." (http://doc.trolltech.com/4.6/resources.html)


RC_FILE on the other hand is described in a very generic way, and when reading it I thought it refers again to Qt resource file names: "This variable contains the name of the resource file for the application. The value of this variable is typically handled by qmake  or qmake.conf  and rarely needs to be modified." (http://doc.trolltech.com/4.6/qmake-variable-reference.html#rc-file)

Not to mention that there is also a 'RES_FILE' variable with exactly the same documentation - but probably that also refers to Microsoft *.rc files ;)


Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list