Код: Выделить всё
import sys
from PySide6.QtCore import QObject, QUrl
from PySide6.QtWidgets import QApplication, QWidget
from PySide6.QtWebEngineWidgets import QWebEngineView
class Obj(QObject):
def eventFilter(self, obj, e):
print(e)
return False
app = QApplication(sys.argv)
#w = QWidget()
w = QWebEngineView()
w.setUrl(QUrl('about:blank'))
obj = Obj()
app.installEventFilter(obj)
w.show()
app.exec()
Подробнее здесь: https://stackoverflow.com/questions/791 ... engineview