Search code examples
qtqgraphicsviewqwebviewqgraphicsscene

Placing a QWebView Over an Existing QGraphicsView


I'm trying to place a QWebView on top of an existing window that is just a QGraphicsView containing a single QGraphicsScene. Is there any way to do this without creating a new window?

My goal is just to overlay most of the screen and dim out the stuff on the QGraphicsScene, so it puts a "focus" on the QWebView. Any suggestions?


Solution

  • I ended up just adding the QWebView to the QGraphicsView, and then positioned it using the move(QPointF) and resize(QSize) methods.