PDA

View Full Version : [QT5]QWebView autoscroll to bottom



yaoyao54
7th April 2013, 11:04
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"?

h-n-s
7th April 2013, 12:24
try it:


QUrl tgt("http://www.google.com");
ui->webView->setUrl(tgt);
ui->webView->show();

yaoyao54
8th April 2013, 04:20
solved, add #include <QtWebKitWidgets>, not just <QWebView>