开发者

Qt: QWebview not displaying jpg, gif, png images on another machines

开发者 https://www.devze.com 2023-03-03 02:59 出处:网络
Today I ca开发者_C百科me across a very strange error with QWebView which I cannot resolve myself.

Today I ca开发者_C百科me across a very strange error with QWebView which I cannot resolve myself.

I included a QWebView widget in my application. When I set a URL or a piece of HTML code to display (with QWebView::setUrl() or QWebView::setHtml()), it works very well on my machine. It also works on all machines that have Qt installed, but not on those without it. I compiled a release build and included all necessary libraries as shared (QtWebKit4.dll, QtNetwork4.dll etc.), so I guess my error lies in that I forgot to include some libraries.

If anybody has already had such an error, I would be very grateful for help!


You might need to include the relevant Qt image processing plugin libraries, which are located in qt/plugins/imageformats (and maybe also qt/plugins/iconengines ). I haven't deployed any webkit apps, so I'm not certain about this.


See my answer to this question: Qt dll deployment on windows

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号