请问我的程序运行完是这种情况,FLASH没有显示,但是按右键FLASH菜单还能出来,第一行是没有加载影片,第二行是关于,这是什么问题呢 。同样的代码在HTML里可以显示,目录也没问题
<html>
<body>
<td><embed src='11.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' ></embed></td>
</body>
</html>
QString web(
"<html>"
"<body>"
//<embed src="flash/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="930" height="319"></embed>
"<td><embed src='11.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' ></embed></td>"
"</body>"
"</html>"
);
webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
webView->settings()->setAttribute(QWebSettings::JavascriptEnabled, true);
webView->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
webView->settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows, true);
webView-> setHtml (web);