Solved how to clear the contents on QWebEnginePage?
-
QWebengineView is used to display some html contents on the GUI. They need to be cleaned up some time later.
I can not see any clear functions in the doc of QWebEnginePage. Simply set empty contents to QWebEnginePage? -
@JoeCFD said in how to clear the contents on QWebEnginePage?:
They need to be cleaned up some time later.
Why?
Simply set empty contents to QWebEnginePage?
That's all you can do. Other than deleting the whole
QWebEnginePage
. Or maybe something esoteric like directing it toabout:blank
! -
The content has some animation and is not needed anymore. But the QWebEnginePage will be used later. Therefore, it is better to clean it up first. I have already set html to empty. Thanks for your reply.