Results 1 to 3 of 3

Thread: [QT5]QWebView autoscroll to bottom

  1. #1
    Join Date
    Apr 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default [QT5]QWebView autoscroll to bottom

    Hi, that, when I use the following codes:


    QUrl tgt("http://www.google.com");
    ui->webView->load(tgt);
    ui->webView->page()->mainFrame()

    there is no following story, how can I GET FUNCTION LIKE "setScrollBarValue"?

  2. #2
    Join Date
    Mar 2013
    Location
    Poland
    Posts
    15
    Thanks
    2
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: [QT5]QWebView autoscroll to bottom

    try it:
    Qt Code:
    1. QUrl tgt("http://www.google.com");
    2. ui->webView->setUrl(tgt);
    3. ui->webView->show();
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Apr 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: [QT5]QWebView autoscroll to bottom

    solved, add #include <QtWebKitWidgets>, not just <QWebView>

Similar Threads

  1. QWebView autoscroll to bottom
    By mero in forum Qt Programming
    Replies: 4
    Last Post: 2nd August 2012, 07:48
  2. Autoscroll in Tableview
    By codeman in forum Qt Programming
    Replies: 0
    Last Post: 13th January 2011, 13:54
  3. Autoscroll in ScrollArea
    By BalaQT in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2009, 06:37
  4. Replies: 7
    Last Post: 15th November 2007, 18:19
  5. Autoscroll QTextBrowser
    By aLiNuSh in forum Newbie
    Replies: 4
    Last Post: 24th March 2007, 13:27

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.