是不是要添加什么代码
QWebView view;
view.settings()->setAttribute(QWebSettings::JavascriptEnabled,true);
view.settings()->setAttribute(QWebSettings::PluginsEnabled,true);
view.settings()->setAttribute(QWebSettings::JavascriptCanCloseWindows,false);
// OK
//view.load(QUrl("http://www.youtube.com/watch?v=KMU0tzLwhbE"));
// OK
view.load(QUrl("http://www.tudou.com/listplay/-IZuwurhBkA/buNTHM_mEtM.html"));
// crash
// view.load(QUrl("https://www.baidu.com/"));
view.show();