PDA

View Full Version : QWebView and scrolling to anchor



serenti
9th July 2009, 22:07
Is there a way to scroll to anchor in QWebView after all links have been delegated using DelegateAllLinks?

In other words, I get the linkClicked() signal for ALL links in the document. If it's a link to a local anchor, I want to make the web view scroll to the anchor. In QTextEdit there is the scrollToAnchor() function, but I can't find anything that would make QWebView move to a given anchor...

jpn
16th July 2009, 16:55
This might be of interest to you: Qt Labs Blogs >> QWebView snap-scrolling (http://labs.trolltech.com/blogs/2009/06/06/qwebview-snap-scrolling/)