QTWebkit 4.6 和 ico 图像,渲染问题

发布于 2024-08-23 15:56:19 字数 221 浏览 14 评论 0原文

我有一个本地 html 文件,我正在尝试使用 QTWebKit 查看该文件,文件中有些图像的类型为“.ico”,这似乎 QTWebKit 无法渲染它们,因为它给出了一个问号图标。

我尝试在 Firefox 中打开 html 文件,它工作正常并且所有图像都得到渲染。

我的问题是,QTWebKit是否支持ico图像,如果支持...我应该怎么做才能使webkit渲染ico图像?

问候

I have a local html file which I'm trying to view using QTWebKit, there are some images in the file which are of type ".ico" which seems that QTWebKit is not able to render them as it gives a question mark icon instead.

I tried opening the html file in firefox and its working fine and all images gets rendered.

My question is, does QTWebKit support ico images, and if it does... what should I do to enable webkit to render ico images?

Regards

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

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

发布评论

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

评论(1

鹿童谣 2024-08-30 15:56:19

难道你的 Qt 是在没有 ICO 支持的情况下构建的吗?在Qt中,ICO通常是一个图像插件。检查它是否存在于您的 Qt 安装中($prefix/plugins/imageformats/)

Could it be that your Qt is built without ICO support? In Qt ICO is usually an image plugin. Check if it exists in your Qt installation ($prefix/plugins/imageformats/)

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