You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, December 7th 2010, 2:03am

Qt WebKit NPAPI windowless plugin

I've a Qt WebKit NPAPI windowless plugin written, and the NPP_HandleEvent(NPP instance, void* ev) is only being invoked if it is a paint message. The scenario is that on a web page, when a button click which cause the windowless NPAPI plugin to be created, as part of the creation cause a paint event which caue the PluginView::paint(GraphicsContext*, IntRect&) to be invoked and finally the plugin NPP_HandleEvent to be called and the custom plugin to be call and draw to surface that pass back from the XEvent (graphicsexpose.drawable). Now, when any mouse click on the display, the PluginView::handleEvent(Event*) is invoked but it doesn't invoke plugin NPP_HandleEvent(). Can anyone help?