For this little example ,
from PySide6 import QtCore, QtWidgets, QtWebEngineWidgets
# or
# from PySide2 import QtCore, QtWidgets, QtWebEngineWidgets
class BetterWebView(QtWebEngineWidgets.QWebEngineView):
def __init__(self):
super().__init__()
self.load(QtCore.QUrl())
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
view = BetterWebView()
view.load(QtCore.QUrl("https://www.qt.io"))
view.show()
sys.exit(app.exec_())
after running it, I got a list of errors like
[12248:2260:0721/112136.109:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112136.110:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
js: While parsing speculation rules: A rule contains an unknown key: "eagerness".
[12248:2260:0721/112136.411:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112136.412:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112136.414:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112136.416:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112136.443:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112136.444:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112136.758:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112136.760:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112141.494:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112141.494:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112141.497:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
[12248:2260:0721/112141.498:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -107
They are not helpful in my case, I wonder how to suppress(not show) them?