I noticed that icons created using QSystemTrayIcon on Gnome and KDE have a fixed size in the notification area, unlike others which scale up and down with the tray. Is there any way to make the icons change size when the tray does ? The documentation says
but it doesn't seem to happen.On Windows, the system tray icon size is 16x16; on X11, the preferred size is 22x22. The icon will be scaled to the appropriate size as necessary.
I load the icon like this :
I unsuccessfully tried a png, jpg and ico.mywidget::mywidget()
{
...
trayIcon->setIcon(QPixmap(":/res/transparent_32.png"));
}
I attached a screenshot of what it looks like (the icons on the left and on the right of the big blue (scaled) music note)
Pierre
Bookmarks