Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED]System tray notification



  • Hey, I set up system tray and added notification... But it won't disappear after 3000 msec... Takes much much longer... 15 - 20 sec

    Any idea why???

    @trayIcon->showMessage("Message", trayNotification , QSystemTrayIcon::MessageIcon::Information, 3000);@


  • Lifetime Qt Champion

    Hi,

    Depending on your OS, it might be ignoring that timeout value. QSystemTrayIcon::showMessage's documentation gives more details

    Hope it helps


Log in to reply