Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.15.0 RC2
-
None
-
macOS 10 and above
Description
When the program exits, the application notification in the notifications will not be cleared.
In macOS,when using the showMessage method of QSystemTrayIcon, the notification bar will receive messages, but when I close the application, these messages in the notifications will not be cleared
for example,in macOS:
QSystemTrayIcon * systemTray = new QSystemTrayIcon(this);
systemTray->showMessage("Widget", "1223", QIcon(""), 1500);
When systemTray is destroyed, if the showMessage is not clicked, it will remain in the notifications and will not be cleared.