Files
Obsidian-Main/20.01. Programming/QT/Application Icon.md

10 lines
597 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 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)