Results 1 to 2 of 2

Thread: qwebframe - scrolling to a specific position

  1. #1
    Join Date
    Jun 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default qwebframe - scrolling to a specific position

    How do I get qwebframe to go to a specific position?? I tried setScrollBarValue & using javascript window.scrollTo, but nothing happens.

  2. #2
    Join Date
    Jun 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: qwebframe - scrolling to a specific position

    figured out its " page()->mainFrame()->setScrollPosition(QPoint(x,y))" but had to put it in a slot for after the page finished loading (thanks to #qt IRC channel)

Similar Threads

  1. Problem with loadFinished signal from QWebFrame
    By s87 in forum Qt Programming
    Replies: 0
    Last Post: 19th April 2010, 11:24
  2. QWebFrame evaluateJavaScript
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 2nd September 2009, 07:55
  3. QWebFrame scroll down to the max.
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2009, 22:55
  4. Replies: 0
    Last Post: 30th November 2008, 16:59
  5. positioning a window at a specific screen position
    By nupul in forum Qt Programming
    Replies: 3
    Last Post: 29th March 2006, 20:21

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.