Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Image Source seems to change the IP of an Image Adress
Qt 6.11 is out! See what's new in the release blog

QML Image Source seems to change the IP of an Image Adress

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 2.1k Views 1 Watching
  • 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.
  • O Offline
    O Offline
    outdoor_guy
    wrote on last edited by
    #1

    Hi

    I have the following problem:
    From an UPnP-Server, I get the adress of an image, like this:
    @
    http://127.0.0.1:6051/thumbnail?id=1688&mimetype=image/jpeg
    @

    This one I give as a String to an Image.source in my QML-Code

    I get back the following error-Message:
    @
    QML Image: Error downloading http://172.24.7.73 - server replied: Service Unavailable
    @

    Here I have to say, that 172.24.7.73 is the IP-Adress of local-host, but I can not reach it from my Qt-Program, because a proxy is in use, which blockes this adress (I described that problem already here: "http://qt-project.org/forums/viewthread/20637/":http://qt-project.org/forums/viewthread/20637/

    So my question is: Is it really the QML what is changing the URL? If so, why and - more important - is the a way to avoid this?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chrisadams
      wrote on last edited by
      #2

      You can define which QNetworkAccessManager the engine uses to request stuff. If you have a custom QNAM which resolves things in the way you want, that might solve your issue.

      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