[webkit-qt] WebGL rendering offscreen

Jorge Fernandez Monteagudo jorgefm at cirsa.com
Tue Nov 11 07:40:07 PST 2014


>On Tuesday 11 November 2014, Jorge Fernandez Monteagudo wrote:
>>
>> Hi Allan! Thank you for answering.
>>
>> I'm open to use the correct way to do it. My only need is to be able to
>> render the given page in my opengl context. The typical example rendering
>> a WebGL in the faces of a cube in OpenGL will be great! Is there any demo
>> like this? :)
>>
>> Or, at least, where can I find an example using QGraphicsWebView with a
>> QGLWidget viewport?
>>
>See the documentation of QGraphicsView and especially setViewPort ( http://qt-project.org/doc/qt-5/qgraphicsview.html ). In Qt 5.4 you can also use a
>QOpenGLWidget. It basically sets a specific widget as the output, qtwebkit can
>find that widget and use the same opengl-context in case it uses one. Without
>this qtwebkit would have its own widget that can mess with yours and would
>still need copying over CPU to blit textures.

Hi Allan,

Only to clarify... Which I need QGraphicsView or QGraphicsWebView?? And
do you recommend me to update to Qt 5.4 or remain in the Qt 5.3.2?

Thanks!
Jorge

Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario indicado, queda notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it.


More information about the webkit-qt mailing list