I am developing an application for RedHat 7.2, with Qt5.6.
My resource file 'qrc':
<RCC>
<qresource prefix="/">
<file alias="APP_ICON">lw-3.png</file>
</qresource>
</RCC>
I want to set-up the application to use this resource as the application icon. Using the editor I have edited the main window and set the property 'windowIcon' to APP_ICON by choosing it from the resource file.
I've run qmake and built the application but the icon remains the default Qt icon.
I've tried adding this code to the main window constructor:
QIcon objIcon = QIcon(":/APP_ICON");
setWindowIcon(objIcon);
However this doesn't work either, what do I need to do?
[Edit] The application shown in the task bar does display the correct icon as set-up in the resource along side the application title, its just the icon in the file system that isn't correct.