Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Is there an easy way to embedded and add an icon to an Qt application?
Define icon. Where will it be displayed? What build system? CMake or qmake?
@VRonin , sorry I should have been more specific...I'm referring to a default desktop icon for the application that is embedded in the executable.
With IDE's like MSVC this is quite straight forward.
@SPlatten Will this help? https://doc.qt.io/qt-5/appicon.html
I, for Windows and using qmake, simply add RC_ICONS=path_to_icon_file.ico in the .pro file and it just works.
RC_ICONS=path_to_icon_file.ico
EDIT: for embedding icon in .exe please see the link.
@artwaw , thank you.
@artwaw, just added the RC_ICONS to the pro file, it doesn't change colour when entered like the other labels...will try anyway.
@artwaw It works :)