Qt 6.11 is out! See what's new in the release
blog
Problem with the trayicon , when application is closed the icon still in the tray
General and Desktop
3
Posts
3
Posters
5.4k
Views
1
Watching
-
Hello all
i have problem that the icon doesn't clean it self after i close my application and make sure to clean the icon from the tray
the icon still remain there , only after i move my mouse pointer over the icon it disappear .
how can i prevent it to stay there after application closing , im using windows xp 32 sp 2? -
You have to manually hide the tray icon (for example at the closeEvent of the main window).
@
void MainWidget::closeEvent(QCloseEvent* event)
{
_systemTrayIcon->hide();event->accept();}
@ ... will do the trick.