Build Environment: Qt 5.0.2, Qt Creator 2.7.0, MinGW 4.7, Windows 7 32-bit.
I'm trying to get both Application properties and Application ICON set.
If I create a file called logo.rc that contains:
IDI_ICON1 ICON DISCARDABLE "images/Application.ico
IDI_ICON1 ICON DISCARDABLE "images/Application.ico
To copy to clipboard, switch view to plain text mode
and add the following line to my .pro file:
RC_FILE=logo.rc
RC_FILE=logo.rc
To copy to clipboard, switch view to plain text mode
Then the logo gets set. But when I include these lines in the .pro:
QMAKE_TARGET_COMPANY = "MyCo Inc."
QMAKE_TARGET_PRODUCT = "myPRODUCT"
QMAKE_TARGET_DESCRIPTION = "myPRODUCT rules."
QMAKE_TARGET_COPYRIGHT = "Copyright (C) 2013 MyCo, Inc"
QMAKE_TARGET_COMPANY = "MyCo Inc."
QMAKE_TARGET_PRODUCT = "myPRODUCT"
QMAKE_TARGET_DESCRIPTION = "myPRODUCT rules."
QMAKE_TARGET_COPYRIGHT = "Copyright (C) 2013 MyCo, Inc"
To copy to clipboard, switch view to plain text mode
The property values are NOT set.
If I remove the RC_FILE setting from the project, then the property values are set and a file named "<project>_resource.rc" is created in the project directory. Then the property values are set.
It seems I'm allowed only one .rc file per project. Is there a way to set both the Application ICON and the Application Properties or can I only set one or the other?
Karl
Bookmarks