Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to change the exe icon?
Qt 6.12 LTS is out! See what's new in the release blog

How to change the exe icon?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 561 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roberrt
    wrote on last edited by
    #1

    Im compiling my project using Visual Studio 2019, I have created a resource file and added a line like this:

    IDI_ICON1   ICON    DISCARDABLE     "D:/Repos/Project/app.ico"
    

    It does change the exe icon, however, I would like to ask if it's possible to load the icon from
    the embedded resources (.qrc) like you use URL for loading an image into a stylesheet.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by
      #2

      No, it is not possible.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved