I just created a QSystemTray.
trayIcon->showMessage("Beta 0.9", "You are logged in", trayIcon->Information, 1);
trayIcon->showMessage("Beta 0.9", "You are logged in", trayIcon->Information, 1);
To copy to clipboard, switch view to plain text mode
The idea is that the message displayed in the tray should stay for a very short period of time, but it stays there for about 10 seconds.
1. How can I make sure that the message disappears after 2 seconds ?
2. The system tray icon is a child of my QMainWindow, but when I close the window, the icon stays in the system tray. Why ? How can I destroy it together with the window ?
Bookmarks