[mythtv] "global" keys?
renchi at pooh.tam.uiuc.edu
Wed Sep 24 13:42:52 EDT 2003
On Wed, 24 Sep 2003, thor wrote:
> On Wednesday 24 September 2003 01:25 pm, Renchi Raju wrote:
> > i don't see what the problem is. most of the mythplugins have
> > widgets which derive from mythdialog. the base mythdialog can do
> > the installing eventfilter business on the mythfrontend end. You
> > don't need to expose this part to the plugins at all.
> What is supposed to catch the global keypresses? Is that object going
> to be in scope, in the execution loop, and able to catch keypresses?
> - thor
sorry if i sound too pedantic.
qt events work like this: say a widget gets some keypress. this is handled
by it directly,... unless u have an event filter installed on it with
QObject::installEventFilter. Now on the mythfrontend a global eventfilter
which handles only keypresses is created and a every mythdialog instance
installs it by default into itself (and consequently onto all plugins
which use this mythdialog). So the global eventfilter object (geo) is
resident in the mythfrontend and so is in the execution loop. every time
some event happens in a mythdialog instance it goes to the geo which will
accept and reject it.
hope that explains things.
More information about the mythtv-dev