Qt 6.11 is out! See what's new in the release
blog
Invisible QSystemTrayIcon [SOLVED]
General and Desktop
9
Posts
4
Posters
2.1k
Views
2
Watching
-
Hello.
I have used QSystemTrayIcon in my application. OS: Windows 7. It worked perfectly, but when I launched this application in Windows XP icon in tray was invisible, but menu in tray worked.
How to solve this problem?Here is code:
QSystemTrayIcon* trayIcon;
...
trayIcon = new QSystemTrayIcon(this);
trayIcon->setToolTip("Tool");
trayIcon->setIcon(QIcon(":/pictures/icon.ico"));
trayIcon->show(); -
Hi,
If you use this icon on e.g. a QLabel, is it visible on XP ?
-
Did you deploy all dependencies correctly on XP ?
-
@SGaist Hello.
QLabel with it is invisible on XP. I also set this icon on exe file (I mean this IDI_ICON1 ICON DISCARDABLE "icon.ico") and it works: exe contains this icon.