Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Windows 10 notifications

Tags:

windows

qt

I am trying to make use of the Windows 10 notifications system (the ones poping out from the right side panel, available from notifications tray icon) in my Qt 5.13.0 program. I am looking at the Windows extras class: https://doc.qt.io/qt-5/qtwinextras-index.html but cannot find any API for such thing. Is it even possible somehow in Qt?

like image 338
Łukasz Przeniosło Avatar asked Oct 21 '25 19:10

Łukasz Przeniosło


1 Answers

Yes, try the System Tray Icon example.

It is not a Windows only API. The QSystemTrayIcon class works in several platforms. In Windows 10, QSystemTrayIcon::showMessage() shows the notification you are looking for.

like image 139
Former contributor Avatar answered Oct 24 '25 10:10

Former contributor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!