如何为QtWebKit安装插件 [英] How to install a plugin for QtWebKit

查看:48
本文介绍了如何为QtWebKit安装插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Qt 4.5商业快照,并想使用我在 QWebView 中下载的插件(这是一个.so文件).我需要在特定位置放置此文件吗?我可以使用 QWebPluginFactory 来抓取它吗?

I am running a Qt 4.5 commercial snapshot and want to use a plugin that I downloaded (it's a .so file) in my QWebView. Is there a specific location where I need to place this file? Can I grab it using the QWebPluginFactory?

推荐答案

我假设这里的插件是NPAPI插件(例如Flash).在X11下,QtWebKit在几个通用目录中搜索该插件.有关完整列表,请参见有关Netscape插件支持的文档.

I am assuming the plugin here is the NPAPI plugin (e.g. Flash). Under X11, QtWebKit search several common directories for the plugin. For the complete list, see the documentation on Netscape plugin support.

除此之外,您还必须通过QWebSettings ::启用插件支持.请参见 WebAttribute :::: PluginsEnabled 的文档.全局或仅用于特定的QWebView.

In addition to that, you must enable plugin support via QWebSettings::. See the documentation for WebAttribute::::PluginsEnabled, either globally or for your particular QWebView only.

这篇关于如何为QtWebKit安装插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆