Associated with the icon, we provide a menu containing the typical minimize, maximize, restore and quit actions. To check whether a system tray is present on the user's desktop, call the static QSystemTrayIcon::isSystemTrayAvailable() function. The tray icon is an instance of the QSystemTrayIcon class.
The other private functions are only convenience functions provided to simplify the constructor. We implement several private slots to respond to user interaction. Void iconActivated( QSystemTrayIcon ::ActivationReason reason) Void closeEvent( QCloseEvent *event) override