父窗口new QWebEngineView对象时,一定要把this指针传递过去。
正确初始化:
QWebEngineView* webView = new QWebEngineView(this);
错误初始化:
QWebEngineView* webView = new QWebEngineView;
父窗口new QWebEngineView对象时,一定要把this指针传递过去。
正确初始化:
QWebEngineView* webView = new QWebEngineView(this);
错误初始化:
QWebEngineView* webView = new QWebEngineView;