vault backup: 2023-01-11 14:32:43
This commit is contained in:
9
04. Programming/QT/Application Icon.md
Normal file
9
04. Programming/QT/Application Icon.md
Normal file
@@ -0,0 +1,9 @@
|
||||
## Add icon of application
|
||||
1. Create a `*.ico` file of whatever you want to use as a logo. I called mine `favicon.ico`.
|
||||
2. Create a file named `yourapplication.rc`.
|
||||
3. Add the following line to `yourapplication.rc`: `IDI_ICON1 ICON DISCARDABLE "favicon.ico"`.
|
||||
4. Add the `*.rc` file to your buildsystem as a source file.
|
||||
5. Make sure that your `*.exe` ships along side the `favicon.ico` file.
|
||||
|
||||
### Source
|
||||
- [c++ - Set icon for Qt application built in Visual Studio - Stack Overflow](https://stackoverflow.com/questions/65818269/set-icon-for-qt-application-built-in-visual-studio)
|
||||
0
04. Programming/万字避坑指南!C++ 的缺陷与思考(上).md
Normal file
0
04. Programming/万字避坑指南!C++ 的缺陷与思考(上).md
Normal file
Reference in New Issue
Block a user