参考:
https://github.com/dragondjf/PFramer/blob/master/doc/Qt%20WebEngine.md
怎样获得网页源码,而不是空字符串:
QTextEdit* textEdit = new QTextEdit();
QWebEnginePage *tempWebEnginePage=m_webview->page();
tempWebEnginePage->toHtml([this](const QString& result) mutable {emit getHtml2String(result);});