[Qt-interest] embeding version number

Steven Doerfler sgd-qt at lugaru.com
Wed Mar 3 20:30:10 CET 2010


On 3/3/2010 1:16 PM, Oliver.Knoll at comit.ch wrote:
> 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

I'm not sure that's correct either.  I think RESOURCES is supposed to
contain a list of .qrc files.

As I understand the documentation, there are two ways to use a .qrc file.

The normal way is to specify it in RESOURCES in your .pro file.  Then
qmake will cause the .qrc file to be made into a .cpp file and compiled
into the application, directly available.

The other way is to manually run rcc with a special -binary flag that
lets it turn the .qrc file into a binary .rcc file, distribute that
binary .rcc file with your program, and at runtime, use QResource to
load the binary file.

So I'd say the line you quoted should refer to .qrc files, not .rc files
or .rcc files.  I reported this and other documentation glitches as
QTBUG-8709 <http://bugreports.qt.nokia.com/browse/QTBUG-8709>.

> 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 ;)
>   

It refers to the .res files made from Microsoft .rc files.  See my
linked bug report.

Steven

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100303/228d3c0b/attachment.html 


More information about the Qt-interest-old mailing list