[Solved] Repaint transparent background when resizing QWebView
McLion last edited by
I have a WebView on the first page of a StackedWidget (as Central Widget in MainWindow, I guess ..).
The background around the WebView is transparent. When I now resize the WebViev from code at runtime the space used by the webView before making it smaller is not repainted and therefore not set to transparent. The old content just stays there and only the part that is covered by the resized WebView is repainted.
How can I achieve that everything else except the the area of the resized WebView (using setGeometry) is repainted and therefore set to transparent?
I need to move and resize the webView from code while the surrounding rest of the screen always stays transparent.
Thanks and best regards,