[Qt-interest] Generating application icons with Windows, Qt 4.7.1 and Visual Studio Addin 1.1.7
Darryl Hunter
darryl.hunter at codersoft.com.au
Sun Feb 13 00:58:10 CET 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110213/40f47be6/attachment.html
More information about the Qt-interest-old
mailing list