Results 1 to 3 of 3

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

  1. #1
    Join Date
    Apr 2011
    Location
    Bayreuth, Bayern
    Posts
    24
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default QWebview not displaying jpg, gif, png images on another machines

    Hello!

    Today I came 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!

  2. #2
    Join Date
    Dec 2009
    Posts
    128
    Thanks
    7
    Thanked 14 Times in 14 Posts
    Platforms
    Unix/X11 Windows

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

    Hi

    You probably forgot to deploy image plugins (there are plenty of threads discussing this issue and how to solve it, see "Similar Threads" below, for example http://www.qtcentre.org/threads/1615...-images-in-QT4)

  3. #3
    Join Date
    Apr 2011
    Location
    Bayreuth, Bayern
    Posts
    24
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

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

    Thank you! That solved my problem!

    it is strange, that developers do not mention anything about including additional image libraries when compiling an application that uses QWebView.

Similar Threads

  1. assistant not displaying images
    By GrahamLabdon in forum Qt Tools
    Replies: 0
    Last Post: 12th November 2010, 13:51
  2. QWebView not displaying images
    By andyp in forum Qt Programming
    Replies: 7
    Last Post: 3rd December 2009, 21:35
  3. Problem with displaying jpeg and gif images, in QT4
    By node_ex in forum Installation and Deployment
    Replies: 1
    Last Post: 23rd September 2008, 15:29
  4. Replies: 3
    Last Post: 17th May 2007, 13:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.