diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index af8090f..3a894a5 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -19,6 +19,30 @@ } } }, + { + "id": "f100a931f2d50826", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "04. Programming/QT/Application Icon.md", + "mode": "source", + "source": true + } + } + }, + { + "id": "a57de7511dc77150", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "04. Programming/万字避坑指南!C++ 的缺陷与思考(上).md", + "mode": "source", + "source": true + } + } + }, { "id": "521c826b1d4c0b0d", "type": "leaf", @@ -31,7 +55,8 @@ } } } - ] + ], + "currentTab": 2 } ], "direction": "vertical" @@ -89,7 +114,7 @@ "state": { "type": "backlink", "state": { - "file": "01. 個人/20230227 - 日本福岡旅遊.md", + "file": "04. Programming/万字避坑指南!C++ 的缺陷与思考(上).md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -106,7 +131,7 @@ "state": { "type": "outline", "state": { - "file": "01. 個人/20230227 - 日本福岡旅遊.md" + "file": "04. Programming/万字避坑指南!C++ 的缺陷与思考(上).md" } } } @@ -149,17 +174,17 @@ "periodic-notes:Open today": false } }, - "active": "11a9323f8567de8a", + "active": "a57de7511dc77150", "lastOpenFiles": [ + "04. Programming/QT/Application Icon.md", + "01. 個人/20230227 - 日本福岡旅遊.md", "01. 個人/01. Daily/2023年度目標.md", "00. Inbox/01. TODO.md", "01. 個人/01. Daily/2023-01-08(週日).md", "01. 個人/01. Daily/2023-01-02(週一).md", "01. 個人/01. Daily/2022/2022年度目標.md", - "01. 個人/20230227 - 日本福岡旅遊.md", "01. 個人/01. Daily/2023-01-11(週三).md", "01. 個人/01. Daily/2023-01-10(週二).md", - "02. 工作/01. Logitech/Meetup.md", - "01. 個人/01. Daily/2023-01-09(週一).md" + "02. 工作/01. Logitech/Meetup.md" ] } \ No newline at end of file diff --git a/04. Programming/QT/Application Icon.md b/04. Programming/QT/Application Icon.md new file mode 100644 index 0000000..500757d --- /dev/null +++ b/04. Programming/QT/Application Icon.md @@ -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) diff --git a/04. Programming/万字避坑指南!C++ 的缺陷与思考(上).md b/04. Programming/万字避坑指南!C++ 的缺陷与思考(上).md new file mode 100644 index 0000000..e69de29