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. [SOLVED] Setting application icon without qmake --> can't find rc program
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Setting application icon without qmake --> can't find rc program

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    Binary91
    wrote on 29 Oct 2014, 23:15 last edited by
    #1

    Hello,
    now, finally, I have finished my first little program and I'd like to add an icon to the application itsself.
    In the documentation (and also in every google search result) there are two possibilities applied:

    1. with qmake (what I'm actually not interessted in because I'd like to know how to do it manually)
    2. without qmake:
      --> creating a .rc file which contains:
      [quote]IDI_ICON1 ICON DISCARDABLE "myappico.ico"[/quote]
      --> then running rc program on it --> output should be an .res file
      --> adding this .res file to compiler command

    My problem:
    I can't find any rc.exe on my computer. I'm using Qt5.3 with mingw_32.
    The only thing I have is a rcc.exe, but I can't run it on the .rc file because it gives me many errors, so I think that is the wrong program fot it.
    Does anyone know what to do in this situation?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Oct 2014, 23:58 last edited by
      #2

      Hi,

      You should simply add this to your pro file

      @ RC_FILE = agiscan.rc@

      The rest should be done for you

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Binary91
        wrote on 30 Oct 2014, 00:14 last edited by
        #3

        Hi,
        thank you for that fast support!
        Well, this way is for sure the easiest one, but I'd like to do it one time without any tools, just by using the comand line... I did a little program that automatically calls g++/moc with all needed includes and libs, and I can simply run this program by right clicking on the source. For getting used to Qt, I wanted to do it that way without any tools.
        So what I need is a program to call via command line, and this program should make a valid .res file from my .rc file... I simply don't know which program to call.
        Could you help me with that?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 31 Oct 2014, 00:36 last edited by
          #4

          Since you are talking about g++, I assume you are using MinGW then you are looking for "this":http://www.mingw.org/wiki/MS_resource_compiler

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • B Offline
            B Offline
            Binary91
            wrote on 31 Oct 2014, 14:47 last edited by
            #5

            That was exactly the information I was looking for, thank's a lot!

            1 Reply Last reply
            0

            1/5

            29 Oct 2014, 23:15

            • Login

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