Thanks, do you know how I do this ?
I tried both of the following in the makefile declarations:
RC_FILE = myapp.rc
RESOURCE = myapp.qrc
RC_FILE = myapp.rc
RESOURCE = myapp.qrc
To copy to clipboard, switch view to plain text mode
I tried this in the main.cpp:
QApplication::setWindowIcon(QIcon(":/images/blue.png"));
To copy to clipboard, switch view to plain text mode
This is one resource attempt (myapp.rc):
IDI_ICON1 ICON DISCARDABLE "blue.png"
IDI_ICON1 ICON DISCARDABLE "blue.png"
To copy to clipboard, switch view to plain text mode
This is the other resource attempt (myapp.qrc):
<RCC>
<qresource>
<file>images/blue.png</file>
</qresource>
</RCC>
<RCC>
<qresource>
<file>images/blue.png</file>
</qresource>
</RCC>
To copy to clipboard, switch view to plain text mode
All files are in the same folder.
Bookmarks