PDA

View Full Version : Problem with application version and icon



cutie.monkey
12th December 2008, 03:32
hi all.. i have problem with application version and putting an icon with it..

heres the situation..

i have put an application version in my app.pro, that is

VERSION = 1.0.0.0

and compiled it, the compilation is successful, and when i right click, and see its properties, then version, i saw the version i just included. Now, i want my application to have an icon, so i added

RC_FILE += icon.rc

in my app.pro. The icon.rc contains

IDI_ICON1 ICON DISCARDABLE "myapp.ico"

and compiled it. after compilation, my application has already an icon, but when i right click again to see its version, the version is no longer available.

is there anyone here knows how can i solve this problem? thnks in advance...:confused:

kwisp
17th December 2008, 11:52
Can I see *pro file?

cutie.monkey
18th December 2008, 02:15
heres my pro:



TEMPLATE = app
QT = gui core sql qt3support
CONFIG += qt release warn_on console
DESTDIR = bin
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
SOURCES = src/main.cpp src/dvrpostimeclass.cpp src/searchvideoclass.cpp src/mysqlconnectionclass.cpp
HEADERS += src/dvrpostimeclass.h \
src/globalclass.h \
src/lablesclass.h \
src/searchvideoclass.h \
src/mysqlconnectionclass.h
FORMS += ui/searchvideoUI.ui ui/setdvrpostimeUI.ui ui/mysqlconnectionUI.ui
RC_FILE += icon.rc
VERSION = 2.0.0.0
RESOURCES += myicons.qrc


im using qt 4.4.0 in windows..

init2null
18th December 2008, 02:22
Have you tried setting the version in the RC file? Here's the RC I'm using with the free Visual C++. It works perfectly with icons, versions, and descriptions.


//MS Visual C++ compatible header
#define APSTUDIO_READONLY_SYMBOLS
#include "windows.h"
#undef APSTUDIO_READONLY_SYMBOLS
//end of MS Visual C++ compatible header

IDI_ICON1 ICON "acme.ico"


// Version Info
1 VERSIONINFO
FILEVERSION 0,9,0,0
PRODUCTVERSION 0,9,0,0
FILEOS VOS__WINDOWS32
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILETYPE VFT_APP
{
BLOCK "StringFileInfo"
{
BLOCK "040904E4"
{
VALUE "CompanyName", "Acme"

VALUE "FileVersion", "0.9"

VALUE "FileDescription", "File Description"

VALUE "InternalName", "acmeapp"

VALUE "LegalCopyright", "(C) 2008 John Doe"

VALUE "LegalTrademarks", " "

VALUE "OriginalFilename", "acme.exe"

VALUE "ProductName", "Acme"

VALUE "ProductVersion", "0.9"

}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 1033, 1252
}
}