Invisible QSystemTrayIcon [SOLVED]
-
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(); -
Please, try to change the icon resolution.
-
@mrdebug It's not work. I've tried resolutions 16x16, 32x32, 64x64 and multi-resolution icon (16, 32, 48, 64, 128, 256) but result is the same: on Windows 7 proper icon, on Windows XP - no icon.
-
Still actual.
-
Hi,
If you use this icon on e.g. a QLabel, is it visible 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. -
Did you deploy all dependencies correctly on XP ?
-
@Dani Try in another format
-
I converted that *.ico file to *.png format and it works now!
Thanks everybody.