Congratulations to our 2022 Qt Champions!

How to set QGraphicsWebView background transparent?

  • I have background video playing or showing another application, then launch webapp which uses QGraphicsWebView. I would like to able to see the background application or video. How could I make QGraphicsWebView to have transparent background? QWebView works in that way, but I have not find a way to set with QGraphicsWebView. Thanks!

  • Something like this should do the job

    view->setAttribute(Qt::WA_OpaquePaintEvent, false);

Log in to reply