'PyQT5 - Webview load URL - Unbalanced save/restore

I try to load a page in a webview widget. I got information:

QPainter::restore: Unbalanced save/restore
QPainter::end: Painter ended with 2 saved states

so Webview is unable to load some pages correctly

  • My code load URL
    @pyqtSlot(str)
    def on_even_loadPAY(self, value):
        self.webView.load(QUrl(value))

Some pages that is else where opens just fine.

Is there a way to fix this error?

thank you very much



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source