Qt/webkit and flash

前端 未结 2 2167
無奈伤痛
無奈伤痛 2021-01-05 10:04

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



<         


        
      
      
      
2条回答
  •  时光取名叫无心
    2021-01-05 10:41

    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

提交回复
热议问题