You can set the credentials on the QUrl you pass to QWebFrame::load()
Your QWebPage uses a QNetworkAccessManager (which you can retrieve a pointer to) to perform the network activity. QNetworkAccessManager emits a signal authenticationRequired() when it is requested to by the remote site. You could connect that signal to a slot that returns the correct authenticator details.