I'm using a QWebEngineViewer widget in my QMainWindow and I want it to have the scrollbar always at the botom of the page every time I open my application. I have found some suggestions but none of them seem to work for me. For example, a posible answer i found used .runJavaScript() to modify de scrollbar position from there, but no matter what I but in the x or y axis the scrollbar doesn't move:
self.webEngine.page().runJavaScript("window.scrollTo(0, 0);")
Another suggestion used the setScrollBarValue() function, but I can't find it in QWebEngineViewer (I'm pretty sure that is from a previous version of qt). Here is the example provided in C++:
webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical));
Thanks in advance for your help!