向Qtwebkit添加新的插件路径 [英] add a new plugins path to Qtwebkit

查看:103
本文介绍了向Qtwebkit添加新的插件路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试扩展qtwebkit用于搜索插件的搜索路径.基本上,我正在创建一个使用QTBrowserPlugin类设计的插件,并且试图使使用QTwebKit编程的浏览器在我指定的文件夹中搜索该插件,因为我不想将该插件存储在其中. Mozilla Firefox插件目录或标准插件目录.

I am trying to extend the search paths that qtwebkit uses to search for plugins. Basically I'm creating a plugin that is designed using the QTBrowserPlugin class and I am trying to make my browser which is programmeed using QTwebKit to search for the plugin in a folder specified by me as I don't want the plugin to be stored in the Mozilla Firefox plugins directory or the standard plugins directories.

是否可以,并且可以让我的浏览器仅查看指定的目录,而跳过所有标准目录.由于浏览器将仅用于查看本地html页面.

Is this possible, and can I make my browser only look in the directory that I've specified, skipping all the standard directories. Since the browser will only be used to view locaL html pages.

推荐答案

我相信您可以为此设置环境变量QTWEBKIT_PLUGIN_PATH.

I believe you can set the environment variable QTWEBKIT_PLUGIN_PATH for this purpose.

这篇关于向Qtwebkit添加新的插件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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