bleucanard
3rd March 2008, 09:35
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
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.
but it doesn't seem to happen.
I load the icon like this :
mywidget::mywidget()
{
...
trayIcon->setIcon(QPixmap(":/res/transparent_32.png"));
}
I unsuccessfully tried a png, jpg and ico.
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
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.
but it doesn't seem to happen.
I load the icon like this :
mywidget::mywidget()
{
...
trayIcon->setIcon(QPixmap(":/res/transparent_32.png"));
}
I unsuccessfully tried a png, jpg and ico.
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