This forum has been archived. All content is frozen. Please use KDE Discuss instead.

custom app, no icon in tray

Tags: None
(comma "," separated)
drookie
Registered Member
Posts
11
Karma
0

custom app, no icon in tray

Mon Mar 30, 2015 2:35 pm
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.
luebking
Karma
0

Re: custom app, no icon in tray  Topic is solved

Tue Mar 31, 2015 4:16 pm
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.
drookie
Registered Member
Posts
11
Karma
0

Re: custom app, no icon in tray

Wed Apr 01, 2015 6:33 am
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.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]