Change icon program Qt
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!
Do you mean the icon shown for your executable file ?
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.
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
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.
i think qt doesnt have the possibility to add one resource to one file not? not sure?
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.
This post is deleted!
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
RC_FILE = program.rc
Content of file program.rc
IDI_ICON1 ICON DISCARDABLE "program.ico"