QWebView::titleChanged
is a signal, not an event. Go to Qt Designer, open context menu of your QWebView element, choose titleChanged
signal. It will create a slot in your MainWindow class.
Using signals and slots is one of the most basic techniques used in Qt. Please read the documentation carefuly.