Qt/webkit and flash

一笑奈何 提交于 2020-01-11 02:32:07

问题


I have installed pyqt 4.8.1 on xp and Qt in package. I have a tag like

<object ...>
<param value='1.swf'>
<embed src='1.swf'></embed>
</param>
</object>

But Qt/webkit doesn't show flash. (there is not problem with code and IE or chrome). Does Qt/webkit support flash?


回答1:


All you have to do is enable plugins. See the python specific Qt example but in C++ its like this.

QWebPage *webpage = ... webpage->settings()->setAttribute(QWebSettings::PluginsEnabled, true);

Plugins are loaded by NPAPI http://en.wikipedia.org/wiki/NPAPI




回答2:


use AC_RunActiveContent.js. for your flash embed, it works in all browsers. This is included as the standard method of embedding within Dreamweaver, but is downloadable if you prefer to use another solution. you can download it here -->link text



来源:https://stackoverflow.com/questions/4348306/qt-webkit-and-flash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!