[Qt-interest] KeyboardLayoutChange event broken?

Pete Black theblackpeter at gmail.com
Thu Feb 5 03:57:34 CET 2009


Pete Black wrote:
> Hey,
> 
> Anyone still getting QEvent::KeyboardLayoutChange events from an evdev
> keyboard under KDE 4? I'm seeing all other kinds of events except this
> which used to show up before (non evdev under KDE 3)?
> 
> Also, qApp->keyboardInputLocale() seems to return the default "C" all
> the time.
> 
> Wanted to check here before I open up a bug.
> 
> Thanks,
> Pete

Looks like the KeymapNotify evens from the xserver are a bit flaky these
days. Like mentioned in the documentation[1] these only get reported on
EnterNotify and FocusIn events, which is not good enough as you might
change layout without triggering these events. On top of that I'm only
getting them once in a while.

Pete

[1]http://tronche.com/gui/x/xlib/events/key-map.html



More information about the Qt-interest-old mailing list