feat: 添加系统托盘

This commit is contained in:
sleepwithoutbz
2025-09-23 12:08:55 +08:00
parent 7d323d9904
commit 16d8c5065e
5 changed files with 76 additions and 7 deletions

View File

@@ -45,6 +45,18 @@ target_link_libraries(cbh PRIVATE
sqlite_orm::sqlite_orm
)
# 添加资源文件
set(cbh_resource_files
"assets/icon.png"
)
qt_add_resources(cbh "cbh"
PREFIX
"/"
FILES
${cbh_resource_files}
)
# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
# If you are developing for iOS or macOS you should consider setting an
# explicit, fixed bundle identifier manually though.