pyqt5 QWebEngineView怎样控制滚动条默认位置,这个问题困扰了好久
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebEngineWidgets import QWebEngineView
from PyQt5.QtCore import QUrl
app = QApplication([])
view = QWebEngineView()
view.load(QUrl("http://www.baidu.com"))
view.show()
app.exec_()
默认情况下:
想设置成默认打开就这样: