Render web content offscreen using QtWebEngine

白昼怎懂夜的黑 提交于 2019-12-05 14:15:05
elproxy

Yes, the APIs are different, and the code path used for rendering uses the scene graph (yes, even for the widgets-based API).

So in this case it is not a WebEngine-specific problem but rather a problem of how to get pixels out of a Qt Quick scene. This is what QQuickRenderControl, which was introduced in Qt 5.4 is trying to address.

QtWebEngine might have some additional quirks related to visibility when doing offscreen stuff in 5.4, hopefully fixed in 5.5 though.

This is definitely a use case that is not demonstrated by QtWebEngine examples, but contributions are welcome.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!