开发者

Qt/webkit and flash

开发者 https://www.devze.com 2023-01-28 14:18 出处:网络
I have installed pyqt 4.8.1 on xp and Qt in package. I have a tag like <object ...> <param value=\'1.swf\'>

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 开发者_如何学Cor chrome). Does Qt/webkit support flash?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消