Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Is there any way to transform output image from QWebEngine in realtime?
Forum Updated to NodeBB v4.3 + New Features

Is there any way to transform output image from QWebEngine in realtime?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 303 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bendertron
    wrote on last edited by Bendertron
    #1

    Hi, Everyone!
    May be it's a bit unclear, but i'll try to explain. I'd like to split output image (frame) that produces QWebEngine in a few images and stack them one above another. Input content looks like this:
    4ecd38f1-5ecb-4dc2-a7bd-79cd13462cdc-image.png
    and I'd like to transform into image like this:
    2426f32d-80c2-4b1f-91b0-b2fe374b1eca-image.png
    The problem is that html content has some animation.
    QWebEngineView is added to QGraphicsScene that has no parents, so WebEngine works offscreen. Resulting image is produced in another widget.
    I tried to use render() (webView->page()->view()->render(&painter);) where painter uses QPixmap (also tried to use QOpenGLPainterDevice) but it takes too much time to render, that's why output animation becomes jerky.
    Is there any way to transform the image directly on gpu (I'm not an expert in OpenGL, but maybe I can get framebuffer object, or get opengl context)?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved