QSystemTrayIcon does not appear
-
wrote on 8 Jun 2013, 20:26 last edited by
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?
-
Hi,
Are you sure windowIcon() returns something valid ?
-
wrote on 8 Jun 2013, 22:31 last edited by
I think yes. I have tried to change the icon without a good result.
Look at the attached screenshot, you will see the icon in the top left corner.
!http://www.denisgottardello.it/QSystemTrayIcon.png(QSystemTrayIcon)! -
wrote on 17 Jun 2013, 07:28 last edited by
Have you found the solution? Have you open a bug report?