You can give any link you'd like -- it uses that link to resolve relatively specified resources within the document like images, external javascript resources, and stylesheets. The web content itself is still specified by your passed in QString. You then can navigate it by using <base URL you passed to setHtml()>#<anchor> , and it should act a little better than it did with about:blank, since it should not be treated special.
http://doc.qt.nokia.com/4.7-snapshot/qwebframe.html#setHtml ~Keith ________________________________________ From: [email protected] [[email protected]] on behalf of ext Vyacheslav V. Yurkov [[email protected]] Sent: Saturday, December 25, 2010 11:48 AM To: Poulain Benjamin (Nokia-MS-Qt/Oslo); [email protected] Subject: Re: [webkit-qt] QWebView history and anchors On 25.12.2010 19:17, [email protected] wrote: > Hi, > > 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. > > cheers, > Benjamin > Hi Benjamin, Sorry about that, I thought this mailing list is for users. 1) Yes, relative links work. 2) That is the point, what kind of link should I give? My HTML data exists only in memory, in QString variable. -- Yours sincerely, Vyacheslav V. Yurkov _______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt _______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
