LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   qt system tray widget (https://www.linuxquestions.org/questions/programming-9/qt-system-tray-widget-867445/)

Endarur 03-09-2011 06:13 AM

qt system tray widget
 
Hi there,

i need to program a little system tray but don't know how to do it. Has someone an idea where to start/get information about that topic or if there is already a system tray widget for qt i can use?
I don't mean QSystemTrayIcon because i need the System tray where these icons can be placed (it's needed for my desktop environment Litotas Desktop)

Thx for your help

jrtayloriv 03-09-2011 05:24 PM

Take a look at KSystemTray for an example of how one major desktop system implemented a system tray.

EDIT: Sorry it wasn't clear that I was suggesting this as a model (i.e. look how they did it), rather than as a plugin module for his desktop system.

Endarur 03-10-2011 11:44 AM

Ok that one sounds good, but would mean i have two possibilities.
1) rewrite the code so it doesn't depend on other kde code or
2) depend my desktop environment on kdelibs

Or am I wrong?

almatic 03-10-2011 12:30 PM

Hi,

you are probably not using qt3 anymore, so you want to look at systemtray::taskarea which is in kdebase-workspace.
However, depending on the kdelibs should not be an option for your desktop imho. Why would I install a desktop that depends on kde, I'd just install kde if I wanted that.
More interesting for you is probably the specification on freedesktop.org. These standards are met by gnome, kde and most other desktops to ensure a common api for the notification area. This is important, because applications, who have a trayicon in kde/gnome etc. will work on your desktop too if you meet those standards.


All times are GMT -5. The time now is 01:52 PM.