![]() Registered Member ![]()
|
Hi.
I have a custom app, it has no icon in the tray; however I remember that it used to have it before. I have an icon for it. It's written using Qt. When I launch it it says: "QSystemTrayIcon::setVisible: No Icon set". Is the icon absence caused by the incorrectly written/built application, or by some problem in my KDE installation ? Thanks. |
![]() ![]()
|
That means the icon passed to QSystemTrayIcon::setIcon() (iff any) "::isNull()", ie. the icon is invalid.
This can eg. happen if you try to load an icon from disk (only) which isn't there and have no built-in icon (.qrc) as failsafe. |
![]() Registered Member ![]()
|
Thanks.
It turns out I compiled this application without KDE support, so it wasn't using this API call at all. I rebuilt it with KDE support et voila. |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]