QWebView - Scrolling / PageDown
-
Hi
Can I somehow scroll down a webpage with a signal to QWebView?
Thanks
McL -
Hi,
You can try to set scroll position on QWebFrame - "doc":http://doc.qt.digia.com/qt/qwebframe.html#scrollPosition-prop
-
I'm on Qt 4.3 which does not support it.
Any other idea?
Could that be done with a QWheelEvent? -
Check the Scroll Position of the Page's Main frame...
@QPoint currentPosition = webView->page()->mainFrame()->scrollPosition();
if (currentPosition.y() == webView->page()->mainFrame()->scrollBarMinimum(Qt::Vertical))
{
qDebug() << "Start Scroll Position";
}if (currentPosition.y() == webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical))
{
qDebug() << "End Scroll Position";
}
@ -
... and how would that help me with scrolling down?