I'm porting an application from Qt4 to Qt5, and it shows a system tray icon. In Qt4 it works, but when compiling with Qt5, the icon isn't shown.
The code I use to show the icon is:
QSystemTrayIcon* trayIcon = new QSystemTrayIcon(this);
trayIcon->setIcon(qApp->windowIcon());
trayIcon->setVisible(true);
My computer runs LXDE on Debian Wheezy.