Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt/webkit and flash

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?

like image 316
imez Avatar asked Dec 03 '10 17:12

imez


1 Answers

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

like image 114
Zack Bartel Avatar answered Oct 01 '22 01:10

Zack Bartel