I have a non-fullscreen Qt application running on top of a browser on an embedded device.
Now, if i click outside the Qt application, it loses focus and doesn't get keyboard events. Is there any way to force focus so that it never loses focus even if someone clicks outside the Qt window?

When the application loses focus, i am able to trap the focus out event, but i don't know how to force the focus back to my application after trapping focus out event.