Qt run the program to modify the windows icon

1. Create a suffix ico pictures, https: //www.easyicon.net/

2. Create a new myapp.rc resource file (the name can be customized), a text editor, modify the contents of the resource file for the IDI_ICON1 ICON DISCARDABLE "Image Name .ico"

3. Copy myapp.rc and pictures to name .ico qt project

4. Modify the pro file, the last line to increase resource files: RC_FILE + = myapp.rc

5. Compile and then run again

Guess you like

Origin www.cnblogs.com/mtn007/p/11812145.html