PDA

View Full Version : QX11EmbedContainer problem with focus



PhoenixRevived
14th November 2007, 05:34
Hi,

I have successfully embedded a GTK app that is X11Embed aware into a QX11EmbedContainer and I can interact with it using the mouse and keyboard. However, I am trying to send it keyboard and mouse input programatically (without using the mouse or keyboard). I can't see to get the application to seize focus without actually using the mouse to click on it. setFocus(), grabKeyboard(), and garbMouse() don't seem to do anything.

As I said, in all other respects the application is successfully embedded - I just want to control it programmatically using synthetic keyboard and mouse input.

What am I missing?