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. Change icon program Qt

Change icon program Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 2.8k 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.
  • RIVOPICOR Offline
    RIVOPICOR Offline
    RIVOPICO
    wrote on last edited by A Former User
    #1

    Hi now i can change the icon with qt in my application etc.. but sometimes when i am in my other i dont have installed qt designer and compiler etc.. so i can't change my icon. So i was trying to make one program like a lot you can see in internet to change the icon for example i put the path of this icon with textview and the button to search the icon and change me the icon in the file i specify. But iam not sure if it's possible to do one program to do this. thx and sorry again!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean the icon shown for your executable file ?

      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
      • RIVOPICOR Offline
        RIVOPICOR Offline
        RIVOPICO
        wrote on last edited by
        #3

        icon like add some resource to my file like any program you can see in internet add one resource in your file so you can add icon or anything resource you want.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Any program ? That's really a bit broad from your description.

          Can you maybe show what you want to achieve using one or more images ?

          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
          • RIVOPICOR Offline
            RIVOPICOR Offline
            RIVOPICO
            wrote on last edited by
            #5

            it's only like any program to change icon like
            http://www.softpedia.com/get/Desktop-Enhancements/Icons-Related/QIcon-Changer.shtml

            It's something to change the icon of my pictures,etc... but did in qt. These application's add in the resources and include like icon so the icon change. So i was trying to do with one textview and one button. only that.

            1 Reply Last reply
            0
            • RIVOPICOR Offline
              RIVOPICOR Offline
              RIVOPICO
              wrote on last edited by
              #6

              i think qt doesnt have the possibility to add one resource to one file not? not sure?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                So you want to implement a simpler version of ResourceHacker ?

                If so, that's indeed outside of Qt's scope to go and toy into binaries and in this case it's highly Windows specific.

                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
                • RIVOPICOR Offline
                  RIVOPICOR Offline
                  RIVOPICO
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • RIVOPICOR Offline
                    RIVOPICOR Offline
                    RIVOPICO
                    wrote on last edited by
                    #9

                    But one thing it is different i'm no ttrying to do resource hacker ididnt know it but now icheck it i'm trying that in my project change the icon i can change the icon but if i the version compiled i can't change my icon so i was trying some way to change my icon with the project in qt including the resource or something to my file. I have the program i can change the icon with my ide but i'm asking about if you know other way possible.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      The executable icon is not contained in Qt's resources. It's something platform specific.

                      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
                      • joaopagottoJ Offline
                        joaopagottoJ Offline
                        joaopagotto
                        wrote on last edited by
                        #11

                        For Microsoft Windows applications

                        Add in your program.pro

                        Add line:

                        RC_FILE = program.rc
                        

                        Content of file program.rc

                        IDI_ICON1 ICON DISCARDABLE "program.ico"
                        
                        1 Reply Last reply
                        1

                        • Login

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