Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Set Icon of my .exe File
QtWS25 Last Chance

Set Icon of my .exe File

Scheduled Pinned Locked Moved General and Desktop
icon
6 Posts 3 Posters 16.0k 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.
  • M Offline
    M Offline
    max-253yomann
    wrote on 14 Apr 2015, 17:21 last edited by
    #1

    Hello,
    i would like to set an application Icon (which is shown on my Desktop).

    I added
    RC_ICONS = icon.ico
    to my .pro file but my compiler says:
    mingw32-make[1]: *** [debug/01_resource_res.o] Error 1

    Does anyone know what I have to do?

    (Qt Creator 3.3.0 - Qt 5.4.0)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      svyatoslav911512
      wrote on 14 Apr 2015, 18:37 last edited by
      #2

      Check that doc:

      http://doc.qt.io/qt-4.8/appicon.html

      There is a step by step plan on how to show .exe icon.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on 14 Apr 2015, 21:26 last edited by
        #3

        @svyatoslav911512 The link is for Qt4. In Qt 5 it's simplified with RC_ICONS (like the OP posted).

        @max-253yomann What you did should be enough and it works for me. Does deleting the output directory entirely and rebuilding help? Can you check if it links if you create a new empty project and add this icon?

        S 1 Reply Last reply 14 Apr 2015, 23:29
        0
        • C Chris Kawa
          14 Apr 2015, 21:26

          @svyatoslav911512 The link is for Qt4. In Qt 5 it's simplified with RC_ICONS (like the OP posted).

          @max-253yomann What you did should be enough and it works for me. Does deleting the output directory entirely and rebuilding help? Can you check if it links if you create a new empty project and add this icon?

          S Offline
          S Offline
          svyatoslav911512
          wrote on 14 Apr 2015, 23:29 last edited by
          #4

          @Chris-Kawa It's true for Qt5 also. I have Qt4 project with this way for setting icons and it works also if project build on Qt5. OP can use it as workaround.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on 14 Apr 2015, 23:32 last edited by
            #5

            Sure, I'm just suggesting trying to find (and hopefully fix) the problem before looking for workarounds.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              max-253yomann
              wrote on 15 Apr 2015, 14:34 last edited by max-253yomann
              #6

              Deleting the output directory and rebuilding does not work.
              Now I created a new project and now it works.

              Thank You :)

              1 Reply Last reply
              0

              5/6

              14 Apr 2015, 23:32

              • Login

              • Login or register to search.
              5 out of 6
              • First post
                5/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved