yo8saw
9th July 2010, 20:45
Hello!
I know there have been questions related to setting application icon, but I couldn't find a solution to my problem.
I use Qt 4.6.3 on Windows 7 x64 to develop a small application for windows.
I have
RC_FILE = myapp.rc
in my .pro file, and
IDI_ICON1 ICON DISCARDABLE "myappicon.ico"
1 VERSIONINFO
FILEVERSION 1,0,1,0
PRODUCTVERSION 1,0,1,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "My Company\0"
VALUE "FileDescription", "A simple desktop application.\0"
VALUE "FileVersion", "1.0.1\0"
VALUE "LegalCopyright", "Copyright 2010 My Company\0"
VALUE "ProductName", "MyApp\0"
VALUE "ProductVersion", "1.0.1\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
in myapp.rc.
Everything works just fine on both Windows 7 and Windows Vista. The file information (product name, copyright etc.) and the .exe icon appear as I've set them. The problem is on Windows XP, where the .exe icon does not appear in Explorer, although the other information (product name, copyright) is ok. The application works fine, otherwise.
Any insight would be greatly appreciated.
I know there have been questions related to setting application icon, but I couldn't find a solution to my problem.
I use Qt 4.6.3 on Windows 7 x64 to develop a small application for windows.
I have
RC_FILE = myapp.rc
in my .pro file, and
IDI_ICON1 ICON DISCARDABLE "myappicon.ico"
1 VERSIONINFO
FILEVERSION 1,0,1,0
PRODUCTVERSION 1,0,1,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "My Company\0"
VALUE "FileDescription", "A simple desktop application.\0"
VALUE "FileVersion", "1.0.1\0"
VALUE "LegalCopyright", "Copyright 2010 My Company\0"
VALUE "ProductName", "MyApp\0"
VALUE "ProductVersion", "1.0.1\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
in myapp.rc.
Everything works just fine on both Windows 7 and Windows Vista. The file information (product name, copyright etc.) and the .exe icon appear as I've set them. The problem is on Windows XP, where the .exe icon does not appear in Explorer, although the other information (product name, copyright) is ok. The application works fine, otherwise.
Any insight would be greatly appreciated.