in QWebEngineView, QWebEnginePage , how can I restore scroll positions?
I can save scroll position with QWebEnginePage::scrollPosition . How can I reload the positions when the program restarted. I am using QWebEngineView.
do u want to get the value saved , to read again when the program is launched once again.
in that case use QSettings.
No, I don't. I mean that I am searching a method to reload the position data back, for example, QWebEnginePage::setScrollPosition. But I didn't find any method like that. There is a bug report here. Is there a way to set scroll positions back?
The code solved my problem.