Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebKit unable to show images on external domains
Forum Updated to NodeBB v4.3 + New Features

QWebKit unable to show images on external domains

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 638 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • antonlindgrenA Offline
    antonlindgrenA Offline
    antonlindgren
    wrote on last edited by
    #1

    Hi,

    I'm using QWebKit (haven't had time to look into upgradring to QWebEngine) to display a browser.
    But I'm having an issue where it does not load images that's on external computers.

    I've tried using http and https, but it just shows a "broken image"-icon.

    Using inspector and network, I get this:
    "Request URL: https://shechive.files.wordpress.com/2012/06/sb-random-543.jpg
    Request Method: GET
    Status Code: 200 OK 200 OK

    Request Headers
    Referer: http://mypage.com/
    User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/538.1 (KHTML, like Gecko) Client Safari/538.1

    Response Headers
    Accept-Ranges: bytes
    Connection: keep-alive
    Content-Length: 78369
    Content-Type: image/jpeg
    Date: Wed, 13 Apr 2016 08:21:40 GMT
    Expires: Fri, 29 Apr 2016 03:23:49 GMT
    Last-Modified: Sun, 24 Jun 2012 01:43:23 GMT
    Server: nginx
    X-nc: HIT fra 3
    X-Orig-Src: 01_mogdir"

    So it appears to find the image, downloads it, but still can't display it.

    Any ideas?

    Thanks in advance.

    Best regards,
    Anton.

    1 Reply Last reply
    0
    • antonlindgrenA Offline
      antonlindgrenA Offline
      antonlindgren
      wrote on last edited by
      #2

      I was missing qjpeg and qgif in my imageformats folder - I added these and it works. :)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved