Search code examples
c++qtqt5qtmacextras

Qt set application badge number


Is it somehow possible to set the application badge number using Qt?

Application badge numer Ubuntu


Solution

  • This does not seem to be supported on Ubuntu just yet, but here you can find the Mac version:

    void QtMac::setApplicationIconBadgeNumber(int number)

    You can enable this add-on by putting this into your qmake project file:

    QT += macextras