Hi

Qt::Key_Tab isn't the same as keycode required in createKeyEvent.

The keycodes on X11 can be found here:
http://cvsweb.xfree86.org/cvsweb/xc/....h?rev=1.1.1.4

You need to either make a mapping between QT::Key_XX and XK_XX, or use XK_XX directly.

cheers,
leif