QWebView does not show GIF and/or JPEG images.
Solution
- In the directory where your Qt application is located, create a subdirectory with
imageformats
name.
- Copy there image plug-ins from the following directory:
$(QTDIR)\plugins\imageformats
by Vurdalakov |
imageformats
name.$(QTDIR)\plugins\imageformats
Thank you very much.. It really helps.
ReplyDeleteThank you very Very very Very very Very very much, and it's not a copy/past ;)
ReplyDeleteI found a different issue. On my system, the example browsers and everything worked but my own code did not. It turns out that calling load (QUrl)("C:\\test.html") loads the text but no images. Changing this to (QUrl) ("file:///c:/test.html") works properly and loads the images! It seems like the webkit parses the name of the URL and makes some sort of decision based off the file name?! This could be behind some of the problems for some users.
ReplyDelete