QWebEngineView inside QGraphicsView with QGraphicsProxyWidget

  • 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?

  • 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.