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. QWebEngineView inside QGraphicsView with QGraphicsProxyWidget
Forum Updated to NodeBB v4.3 + New Features

QWebEngineView inside QGraphicsView with QGraphicsProxyWidget

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 2 Posters 1.3k Views
  • 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
    brianmayo
    wrote on last edited by
    #1

    I'm trying to render a QWebEngineView inside a QGraphicsView. It works with a QGraphicsProxyWidget but the QGraphicsView is not repainted when the image displayed by the proxied QWebEngineView changes.

    Does anyone have an idea of a way to get the QGraphicsProxyWidget to automatically repaint itself when the content of the QWebEngineView changes?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stephane - So-ADE
      wrote on last edited by
      #2

      hi
      I have "solved" the issue using the following workarround:

      I trigger a infinite event loop using QTimer every 100 to 200 ms (depending on the type of page that is displayed) and force a page refresh by calling update() on the QWebEngineView object.

      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