[Qt-interest] FW: Display websites in layouted widgets rendered into framebuffer object

Klimke, Jan Jan.Klimke at hpi.uni-potsdam.de
Tue Jun 2 11:44:05 CEST 2009


Does anyone have a clue for me where i should have a look at ? It seems that the pictures of the webpage are not clipped partly but completely when their full geometry has left the visible area of the widget.

Regards,
Jan

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Klimke, Jan
Sent: Friday, May 29, 2009 11:23 AM
To: 'qt-interest at trolltech.com'
Subject: [Qt-interest] Display websites in layouted widgets rendered into framebuffer object

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/20090602/6738d6c4/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090602/6738d6c4/attachment.txt 


More information about the Qt-interest-old mailing list