[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 02:17:36 CET 2011
Thanks for the suggestion. I had deleted the “Release” directory, re-generated from QMake, and even built again from a fresh checkout (in another area), still with no success.
I have since managed to find out that the deleting the content didn’t make an impact – the re-opening of the vcproj file did???? So now from a fresh checkout, I can open my SUBDIRS .pro file, do a build, close the solution, open the .sln file, delete the generated .exe, and do a Make, and it’s OK. Weird….
From: Jason H [mailto:scorp1us at yahoo.com]
Sent: Sunday, 13 February 2011 11:49 AM
To: Darryl Hunter; qt-interest at trolltech.com
Subject: Re: [Qt-interest] Generating application icons with Windows, Qt 4.7.1 and Visual Studio Addin 1.1.7
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
_____
Now that's room service! Choose from over 150,000 hotels <http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--%0a>
in 45,000 destinations on Yahoo! Travel to find your fit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110213/018552a2/attachment.html
More information about the Qt-interest-old
mailing list