[Qt] Trying to implement Trayicon for Qt

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Sep 5 10:17:06 CEST 2007


On 9/5/07, Paul Ishenin <ip at kmiac.ru> wrote:
> In Lazarus but not in LCL.

Ah ... ok.

Sure, but it will need a bit of redesigning. The current
implementation is a bit chaotic in the sence that it is reimplemented
on some widgetsets once and on others once per windowing system. I did
it that way to get it working, as some version (like X11) are very
hard to implement.

TTrayIcon deep down isn't dependent on the widgetset, but really on
the windowing system, so it should theoretically be possible to have
only 4 version (X11, win32, wince, carbon), and map anything else to
them.

This is quite hard currently because you need to get the handle from
each widgetset and then transform it into a native windowing system
handle for each widgetset for each windowing system. It would be
easier if we had a GetOSHandle or something similar along with the
Handle property, as is planned, and stablish rules about what this
should return for all widgetsets.

So the main obstacle that I see is that LCL is created around a design
where each component is implemented once per widgetset, and what
TTrayIcon really needs is to be implemented once per windowing system.

-- 
Felipe Monteiro de Carvalho



More information about the Qt mailing list