0

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?

K. Barresi
  • 1,275
  • 1
  • 21
  • 46

1 Answers1

0

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

K. Barresi
  • 1,275
  • 1
  • 21
  • 46
  • I'm new to Qt... any advice on how to do the exact opposite? (I want to show a "loading" graphic between page loads) – davidkomer May 03 '15 at 17:08
  • 1
    You can probably just set a loading widget as a child of the QWebView. Just have a function show the loading widget when page loading starts, and hide it when the loading finishes. – K. Barresi May 03 '15 at 17:19
  • Thanks- I wrote it as a distinct question at http://stackoverflow.com/questions/30014431/overlay-while-loading-page-into-qwebview and got similar advice :) Much appreciated – davidkomer May 03 '15 at 21:05