Change icon program Qt
-
Hi,
Do you mean the icon shown for your executable file ?
-
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 ?
-
it's only like any program to change icon like
http://www.softpedia.com/get/Desktop-Enhancements/Icons-Related/QIcon-Changer.shtmlIt'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.
-
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.
-
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.
-
The executable icon is not contained in Qt's resources. It's something platform specific.
-
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"