[Qt-interest] Display websites in layouted widgets rendered into framebuffer object
Klimke, Jan
Jan.Klimke at hpi.uni-potsdam.de
Fri May 29 11:22:47 CEST 2009
Hi,
I try to render an arbitary QtWidget into a framebuffer object which is afterwards used as texture for a quad in OpenGL rendering. This works quite well so far except for rendering embedded QWebViews. The images on webpages are rendered ingonring the extension of the QWebView (see screenshots). They overpaint some other widgets which have the same parent widget.
This apperead since I switched the rendering machnism from rendering a Qpixmap first and then create a texture from it to using the framebuffer object for rendering an texturing.
What can I do about this ?
Screenshots:
http://dl.getdropbox.com/u/808565/screenshot_090528182444735.jpg
http://dl.getdropbox.com/u/808565/screenshot_090528182607566.jpg
http://dl.getdropbox.com/u/808565/screenshot_090529112056198.jpg (especially unusable)
Initialization:
proxyWidget = new QGraphicsProxyWidget(0);
proxyWidget->setWidget(renderWidget);
proxyWidget->show();
fbo = new QGLFramebufferObject(renderWidget->size(),GL_TEXTURE_2D);
renderWidget->render(fbo);
update code:
updateTexture(){
renderWidget->layout()->update();
renderWidget->render(fbo);
}
Kind regards,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090529/cfcc4247/attachment.html
More information about the Qt-interest-old
mailing list