PDA

View Full Version : TrayIcon with Qt4



naresh
15th February 2006, 15:47
Anyone knows solution to make TrayIcon with Qt4? I was looking for it a little bit but i've found only Qt4 trayicon port from PSI. I need something simple for now (just for kde and maybe gnome).

zlatko
15th February 2006, 16:36
Look in qt example TrayIcon

jpn
15th February 2006, 16:40
Look in qt example TrayIcon

I don't think there's such example in Qt4. It used to be in Qt3..

naresh
15th February 2006, 16:55
Thats right... TrayIcon example was removed in Qt4

michel
15th February 2006, 17:22
Maybe this code will work.

http://www.koders.com/cpp/fid849893D7030B4A24930A77F3E51441C9EB4874AC.aspx

Luckily for you, it is GPL'ed. Remember to get the header and the appropriate trayicon_$platform.cpp file(s) too.

naresh
15th February 2006, 17:40
Uch its Qt3 code... I have port of it to Qt4 but also i need some simple example to undestand it quite easily... Code i have is realy strange and after few fixes needed to compile, it doesnt work at all (Well my task behave like while adding icon but no icon appear). Also as jacek suggested to me i would like to use dbus (cuz it should handle task icon for al WMs on Unix platforms)

jacek
15th February 2006, 18:11
Also as jacek suggested to me i would like to use dbus (cuz it should handle task icon for al WMs on Unix platforms)
You have misunderstood me, I was only speculating about the future.

alu
15th February 2006, 18:54
Check out: http://www.qtnode.net/wiki/Systray