Qt - notifications without tray icon, maybe?

I am writing a C ++ Qt desktop application.

Is it possible to show Skype = as notifcations in Qt, without creating a tray icon?

All notification link found requires a tray icon, which I do not want to create.

Notifications should be displayed when opening the application and when minimizing it.

+4
source share
3 answers

Just create a popup class and show it somewhere on the desktop with always the top flag. A notification can also be widgets.

+1
source

UPDATE : this does not seem to work with the latest versions of Qt. The workaround I found for this work was to, after creating the QSystemTrayIcon:

  • Call show()
  • Display the desired message using showMessage
  • Call hide()

This works fine for me.


Create a QSystemTrayIcon , but don't call show() on it. Then you can use QSystemTrayIcon::showMessage to display your popup.

+8
source

a little late, but you might be interested in this library https://github.com/Snorenotify/Snorenotify/

Snorenotify is Qt's multi-user notification platform. Using the plugin system, you can create notifications with many different notification systems on Windows, Unix, and Mac.

+1
source

All Articles