Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Why my app Icon is not used?



  • Hi,

    I have strange problem.

    When I compile my code I have my custom .exe icon. In .pro I have:

    RC_ICONS = resources/myCustomIcon.ico

    And it works.

    But when I add to my .pro lines ( there are before RC_ICONS ):

    win32 {
        RC_FILE = myRcFile.rc
    }
    

    My compiled .exe has default windows icon:

    icon.png

    How can I changed that?

    EDIT:
    Look this :)
    https://doc.qt.io/qt-5/appicon.html


Log in to reply