Does QWebView allow you to fetch the current url? If so, you should read out the url, then urlparse it, extract the fragment, and parse it.
In python this would look like:
import urlparse
url = web_view.URL()
hash = url.fragment()
data = urlparse.parse_qs(hash)
access_token = data["access_token"]