PDA

View Full Version : Embedding flash plugin in webkit causes a new window to popup



smogy
9th October 2009, 11:22
Hi everyone,

I'm having trouble with the following scenario:
I want to have webkit render to a openglframebuffer object to render the contents on a texture, using QPainter.

The render is done correctly and i've managed the rendering to update rectangles as needed and all, really nice, EXCEPT when there is a plugin like flash on the page, in that case the flash rectangle is opened in another widget (why?), and therefore is not rendered to my opengl texture.

I suspect that somewhere in the webkit code, there are some condition that if the plugin is not beeing drawn to a target widget it then forces the creation of a widget to draw into.

The question is : How do i make the flash render to the webpage even if the webpage is not embedded in a widget ?