QSystemTrayIcon does not appear
This code
QSTITrayIcon= new QSystemTrayIcon(this);
QSTITrayIcon->setToolTip(this->windowTitle());
QSTITrayIcon->setIcon(this->windowIcon());
QSTITrayIcon->setContextMenu(QMTrayIcon);
QSTITrayIcon->show();
works correctly with Qt 4.8.4 but not with Qt5. The TrayIcon does not appear in the task bar but in the top left corner of my desktop (Debian 7 with Kde). Have you got any idea?
↧