I want to set badge (notification number) on mac application using Qt,
I also try QApplication::setWindowIcon() but it's only change the icon on window and dialog, not the icon on dock. Is there anyway to set badge using Qt ? Can I call cocoa methods from Qt to set badge ?
Thank you
The dock icon is provided by whatever
.icnsfile your app uses, which is reflected by the icon in Finder, you can set it withICON = /path/to/your/icon.icnsin your.profile. For setting notifications for your app you have to jump into the Objective-C++ bridge, but there's an answer here that shows how to do it: Mac OS UserNotificationCenter in Qt.