[Qt-interest] Generating application icons with Windows, Qt 4.7.1 and Visual Studio Addin 1.1.7

Jason H scorp1us at yahoo.com
Sun Feb 13 01:48:48 CET 2011


I'm betting you just didn't do a "rebuild all". I get burned by it sometimes. 

Remember "make" isn't perfect - it just uses timestamps, not hashes.




________________________________
From: Darryl Hunter <darryl.hunter at codersoft.com.au>
To: qt-interest at trolltech.com
Sent: Sat, February 12, 2011 6:58:10 PM
Subject: [Qt-interest] Generating application icons with Windows, Qt 4.7.1 and 
Visual Studio Addin 1.1.7


Hi all,
 
I spent most of yesterday going round in circles trying to fix a problem, so 
thought I’d share it (and the solution) with you all.
 
I recently ported my application from building on Windows XP, Qt 4.6.3, to 
Windows 7, Qt 4.7.1.  I noticed recently that the application icon no longer 
appears in Explorer, or while the application is running.
 
I tried *many* things, of which I won’t go in to, but I finally decided to 
compare my vcproj file for the two versions.  And there was a very subtle 
difference.
 
In the qrc file, the *new* version had the following extra lines:
                                                                
<FileConfiguration
                                                                                
Name="Debug|Win32"
                                                                                
>
                                                                                
<Tool
                                                                                               
 Name="VCCLCompilerTool"
                                                                                               
 UsePrecompiledHeader="0"
                                                                                
/>
                                                                
</FileConfiguration>
                                                                
<FileConfiguration
                                                                                
Name="Release|Win32"
                                                                                
>
                                                                                
<Tool
                                                                                               
 Name="VCCLCompilerTool"
                                                                                               
 UsePrecompiledHeader="0"
                                                                                
/>
                                                                
</FileConfiguration>
 
When I removed these, delete the .exe, and re-generate the .exe.  The icon was 
there!
 
To make things even more confusing, if I put the lines back in, delete the .exe 
and re-generate, the icon is still there!  But at least it fixes my problem 
(albeit annoyingly).
 
Luckily I don’t have to re-generate too frequently.  But if anybody has seen a 
similar problem and has a better solution, that’d be great to see!
 
Darryl


 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110212/32c0ddaf/attachment.html 


More information about the Qt-interest-old mailing list