Results 1 to 2 of 2

Thread: QWebView and scrolling to anchor

  1. #1
    Join Date
    Jun 2009
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QWebView and scrolling to anchor

    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...

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QWebView and scrolling to anchor

    This might be of interest to you: Qt Labs Blogs >> QWebView snap-scrolling
    J-P Nurmi

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.