I think my web page has some JavaScript errors that make QWebView to not work. Is there some simple way to see JS errors while I'm running the debug build?
Override the javaScriptConsoleMessage function:
http://doc.qt.io/qt-5/qwebenginepage.html#javaScriptConsoleMessage
As the documentation says, the default implementation does nothing...you can dump it as debug output, or whatever. See also this article:
Redirecting JavaScript console messages in a Qt hybrid application (Internet Archive)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With