QtWebKit 中的 NPAPI 插件

发布于 2024-08-18 15:33:03 字数 193 浏览 5 评论 0 原文

我知道可以将 NPAPI 插件与 QtWebKit 集成,因为自 Qt 4.5 发布以来就支持它。

我的问题是,我应该根据 Mozilla/Gecko 文档来设计我的插件吗?除了一些名为“Programming Netscape Plug-ins”的老书之外,这可能是 NPAPI 唯一可用/可靠的文档,或者 Qt 是否处理 NPAPI 插件以不同的方式?

I know its possible to integrate NPAPI plugins with QtWebKit as its been supported since the release of Qt 4.5.

My question is, should I go and design my plugin according to the Mozilla/Gecko documentaion -Which is probably the only available/reliable documentation for NPAPI beside some really old book called "Programming Netscape Plug-ins"- or does Qt handle NPAPI plugins in a different way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

人间☆小暴躁 2024-08-25 15:33:03

使用 Mozillas 和其他文档,例如 colonelpanics 教程会没事的。您可能还想查看 FireBreaths 源代码,因为我们已经解决了其中的一些常见问题。

QtWebKit 实际上包装了 WebKit,我不记得 Mozilla 和 WebKit 之间有任何真正的区别。当然,您应该处理受支持的浏览器属性等方面可能存在的差异,但无论如何您都应该在任何 NPAPI 插件中执行此操作。

额外的好处是,在 QtWebKit 之外的其他环境中使用相同的插件不会遇到太多问题。

Going with Mozillas and other documentation like colonelpanics tutorial will be fine. You might also want to take a look at FireBreaths source because we already solved some common issues there.

QtWebKit actually wraps WebKit and i don't recall there being any real differences between Mozilla and WebKit. Of course you should handle possible differences in supported browser-properties etc., but you should do that in any NPAPI plugin anyway.

The added benefit is that you won't have too much problems using the same plugin in other enviroments then QtWebKit.

凝望流年 2024-08-25 15:33:03

我认为,Mozilla/Gecko 文档(一般 NPAPI开发人员文档)是 NPAPI 文档的最新且可靠的版本。

由于新的 PPAPI 项目的出现,目前人们有兴趣让 npapi 文档变得更有意义。

如果您考虑为 webkit 开发插件,此链接应该会有所帮助: https://svn.webkit.org/wiki/ QtWebKitPlugins

并且一定要使用最新的 npapi-headers

您还可以订阅相应的邮件列表

I think, Mozilla/Gecko documentation (general NPAPI and developer documentation) is the most recent and reliable version of documentation on NPAPI.

There is currently interest in making npapi documentation more meaningful since the new PPAPI project is being emerged.

This link should be helpful if you consider developing plugins for webkit: https://svn.webkit.org/wiki/QtWebKitPlugins

And be sure to use the most recent npapi-headers.

You could also subscribe to the corresponding mailing list

情话墙 2024-08-25 15:33:03

如果您使用 QtWebKit 开发插件,那么它既不适用于 FireFox(它使用 Gecko 而不是 webkit),也不适用于 IE 显然...

如果您想要更便携的东西,请查看另一个 QT 示例 qtbrowserplugin。它在 4.5 之前可用,但仍然适用于当前的浏览器。此外,如果需要,更新它也非常简单。

要么看看 FireBreath (正如 georg-fritzsche 提到的)

If you develop your plugin with QtWebKit, it won't be available neither for FireFox (which uses Gecko instead of webkit), nor for IE obviously...

If you want something more portable take a look to another QT sample qtbrowserplugin. It is available until 4.5, but still works with current browsers. Moreover, it is quite simple to update it if necessary.

Either take a look at FireBreath (as georg-fritzsche mentions)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文