Hello,
I’m using a QSystemTrayIcon on OS/X for my app (QT 5.0.2)
The standard behaviour for apps is to have the icon change when the menu bar icon is selected (usually to an inverted white icon). I can’t seem to get this to work. Am I missing something?
I’ve tried setting the QIcon::Selected and QIcon::Active modes of my icon to no effect.
icon.addFile(":/tray-online.png", QSize(), QIcon::Normal);
icon.addFile(":/tray-online-selected.png", QSize(), QIcon::Selected);
icon.addFile(":/tray-online-selected.png", QSize(), QIcon::Active);
...
trayIcon = new QSystemTrayIcon(this);
trayIcon->setIcon(icon);
...
(The QIcon::Normal icon is always displayed)
Googling all I could turn up was a merge request from 2009 supposedly adding this behaviour.
↧