[webkit-qt] QWebView history and anchors

benjamin.poulain at nokia.com benjamin.poulain at nokia.com
Sat Dec 25 08:17:59 PST 2010


This mailing list is about the development of QtWebKit itself and not about how to use it. It would be better to use http://developer.qt.nokia.com/forums/viewforum/21/ for such questions.

But :)
1) Don't relative links works?
2) about:blank is a special case with special handling here and there in WebKit. You can give a baseUrl as argument to QWebFrame::setHtml(). A regular, non-reserved url should appear in the history.

From: webkit-qt-bounces at lists.webkit.org [webkit-qt-bounces at lists.webkit.org] on behalf of ext Vyacheslav V. Yurkov [uvv.mail at gmail.com]
Sent: Saturday, December 25, 2010 5:02 PM
To: webkit-qt at lists.webkit.org
Subject: [webkit-qt] QWebView history and anchors

I'm porting my application from QTextBrowser to QWebView and have some
questions on it.
1. Firstly, I load my HTML from QString using webView->setHtml() method.
This html data has a lot of anchors. It took me a while to deduce how I
should navigate to my anchors, my links look like
"about:blank#anchor-name". Is there a better way to do that?
2. Even using a method above history items are not created, so I am not
able to navigate back and forward. Could you help me with that please?

Yours sincerely,
Vyacheslav V. Yurkov
webkit-qt mailing list
webkit-qt at lists.webkit.org

More information about the webkit-qt mailing list